From e23143eb88d1688c5c1a1494b0304ae3dfd41780 Mon Sep 17 00:00:00 2001 From: ac_stef Date: Thu, 28 Aug 2008 19:44:26 +0000 Subject: [PATCH] fix: block double vote actions git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2440 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/server.cpp b/source/src/server.cpp index fdbab4e1..50fad4b3 100644 --- a/source/src/server.cpp +++ b/source/src/server.cpp @@ -1441,6 +1441,7 @@ struct voteinfo void evaluate(bool forceend = false) { + if(result!=VOTE_NEUTRAL) return; // block double action int stats[VOTE_NUM] = {0}; loopv(clients) if(clients[i]->type!=ST_EMPTY && clients[i]->connectmillis < callmillis)