Kicking players at the beginning of a network game now works.

This commit is contained in:
lotodore
2007-06-07 21:19:06 +00:00
parent f886ebda86
commit fb274284f5
14 changed files with 122 additions and 45 deletions
+12 -1
View File
@@ -203,12 +203,23 @@ void Session::sendClientPlayerAction()
myNetClient->SendPlayerAction();
}
void Session::sendChatMessage(const std::string &message) {
void Session::sendChatMessage(const std::string &message)
{
if (!myNetClient)
return; // only act if client is running.
myNetClient->SendChatMessage(message);
}
void Session::kickPlayer(const std::string &playerName)
{
if (!myNetServer)
{
assert(false);
return;
}
myNetServer->KickPlayer(playerName);
}
bool Session::isNetworkClientRunning() const
{
// This, and every place which calls this, is a HACK.