]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a double if check for gametypevote
authorMario <zacjardine@y7mail.com>
Thu, 13 Nov 2014 11:20:33 +0000 (22:20 +1100)
committerMario <zacjardine@y7mail.com>
Thu, 13 Nov 2014 11:20:33 +0000 (22:20 +1100)
qcsrc/client/mapvoting.qc

index dbedd013ad68390b91b9513bc2e75456212d06ee..a354bacf28d9ecbec0b259bb5055f2989c889a98 100644 (file)
@@ -532,16 +532,13 @@ void MapVote_Init()
        gametypevote = ReadByte();
        
        float mv_real_num_maps = mv_num_maps - mv_abstain;
-       
-       if ( gametypevote )
+
+       if(gametypevote)
        {
                mapvote_chosenmap = strzone(ReadString());
                if ( gametypevote == 2 )
                        gametypevote = 0;
-       }
 
-       if(gametypevote)
-       {
                gtv_text_size = hud_fontsize*1.4;
                gtv_text_size_small = hud_fontsize*1.1;