From 37abbcbd2863f103d6a506490fb8bb3d4d7fff68 Mon Sep 17 00:00:00 2001 From: scosu Date: Tue, 21 Oct 2008 17:26:32 +0000 Subject: If the player who should be kicked by a vote leaves the game, the vote is aborted. ticket 523 --- src/game/server/hooks.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/server/hooks.cpp') 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; -- cgit 1.4.1