]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix voting with nospectators
authorMario <zacjardine@y7mail.com>
Mon, 23 Feb 2015 23:40:53 +0000 (10:40 +1100)
committerMario <zacjardine@y7mail.com>
Mon, 23 Feb 2015 23:40:53 +0000 (10:40 +1100)
qcsrc/server/command/vote.qc

index 6edccafb156f8a48a40a325ff67438b533c88282..61fd2f3a2d44d423b8a2a1792aec5f635a7ae420 100644 (file)
@@ -235,7 +235,7 @@ void VoteCount(float first_count)
                switch(tmp_player.vote_selection)
                {
                        case VOTE_SELECT_REJECT: { ++vote_reject_count; { if(IS_PLAYER(tmp_player)) ++vote_real_reject_count; } break; }
-                       case VOTE_SELECT_ACCEPT: { ++vote_accept_count; { if(IS_PLAYER(tmp_player)) ++vote_real_reject_count; } break; }
+                       case VOTE_SELECT_ACCEPT: { ++vote_accept_count; { if(IS_PLAYER(tmp_player)) ++vote_real_accept_count; } break; }
                        case VOTE_SELECT_ABSTAIN: { ++vote_abstain_count; { if(IS_PLAYER(tmp_player)) ++vote_real_abstain_count; } break; }
                        default: break;
                }