From: Mario Date: Mon, 23 Feb 2015 23:40:53 +0000 (+1100) Subject: Fix voting with nospectators X-Git-Tag: xonotic-v0.8.1~111 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d54570b726a703243969825c816749ebdfe78d48;p=xonotic%2Fxonotic-data.pk3dir.git Fix voting with nospectators --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 6edccafb1..61fd2f3a2 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -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; }