about summary refs log tree commit diff
path: root/src/game/server/hooks.cpp
diff options
context:
space:
mode:
authorscosu <scosu@gmx.de>2008-10-21 17:26:32 +0000
committerscosu <scosu@gmx.de>2008-10-21 17:26:32 +0000
commit37abbcbd2863f103d6a506490fb8bb3d4d7fff68 (patch)
tree76ac0602e5ad6ca66df59d71578ca8f6568aadb4 /src/game/server/hooks.cpp
parent1e961fdece03e1002ea286aade6626c1272456f3 (diff)
downloadzcatch-37abbcbd2863f103d6a506490fb8bb3d4d7fff68.tar.gz
zcatch-37abbcbd2863f103d6a506490fb8bb3d4d7fff68.zip
If the player who should be kicked by a vote leaves the game, the vote is aborted. ticket 523
Diffstat (limited to 'src/game/server/hooks.cpp')
-rw-r--r--src/game/server/hooks.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp
index 077315dd..bc264f70 100644
--- a/src/game/server/hooks.cpp
+++ b/src/game/server/hooks.cpp
@@ -112,6 +112,7 @@ void mods_connected(int client_id)
 
 void mods_client_drop(int client_id)
 {
+	game.abort_vote_kick_on_disconnect(client_id);
 	game.players[client_id]->on_disconnect();
 	delete game.players[client_id];
 	game.players[client_id] = 0;