Kicking players at the beginning of a network game now works.
This commit is contained in:
+12
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user