about summary refs log tree commit diff
path: root/src/game/server/hooks.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-25 12:41:37 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-25 12:41:37 +0000
commitd2d4024c7acffb2318ed0fac788f707c291154e1 (patch)
tree5d1e285d8b03c70655010d09101d5a840e8226c0 /src/game/server/hooks.cpp
parentaaaba4f4039f3643d1a040dfe1c9715be49371e2 (diff)
downloadzcatch-d2d4024c7acffb2318ed0fac788f707c291154e1.tar.gz
zcatch-d2d4024c7acffb2318ed0fac788f707c291154e1.zip
voting fixes
Diffstat (limited to 'src/game/server/hooks.cpp')
-rw-r--r--src/game/server/hooks.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp
index 3a034a97..0f3008ce 100644
--- a/src/game/server/hooks.cpp
+++ b/src/game/server/hooks.cpp
@@ -149,8 +149,12 @@ void mods_message(int msgtype, int client_id)
 	}
 	else if(msgtype == NETMSGTYPE_CL_VOTE)
 	{
+		if(!game.vote_closetime)
+			return;
+			
 		NETMSG_CL_VOTE *msg = (NETMSG_CL_VOTE *)rawmsg;
 		p->vote = msg->vote;
+		dbg_msg("", "%d voted %d", client_id, msg->vote);
 		game.send_vote_status(-1);
 	}
 	else if (msgtype == NETMSGTYPE_CL_SETTEAM)