Vote kick kind of working. Only the forward case - no timeout, no error handling, no display update.

This commit is contained in:
lotodore
2008-11-25 22:18:17 +00:00
parent 10ba70291e
commit b236fa9d62
13 changed files with 109 additions and 15 deletions
+7
View File
@@ -395,6 +395,13 @@ void Session::startVoteKickPlayer(unsigned playerId)
myNetClient->SendAskKickPlayer(playerId);
}
void Session::voteKick(bool doKick)
{
if (!myNetClient)
return; // only act if client is running.
myNetClient->SendVoteKick(doKick);
}
bool Session::isNetworkClientRunning() const
{
// This, and every place which calls this, is a HACK.