Chat messages are now working.
This commit is contained in:
+5
-5
@@ -185,12 +185,12 @@ void Session::terminateNetworkServer()
|
||||
void Session::sendClientPlayerAction()
|
||||
{
|
||||
if (!myNetClient)
|
||||
return;
|
||||
return; // only act if client is running.
|
||||
myNetClient->SendPlayerAction();
|
||||
}
|
||||
|
||||
void Session::sendChatMessage(std::string message) {
|
||||
|
||||
//hi lothar --> zum testen schick ich es gleich wieder zurück an die gui. wie du siehst klappt es ;-)
|
||||
myGui->chatAppendMsg(message);
|
||||
void Session::sendChatMessage(const std::string &message) {
|
||||
if (!myNetClient)
|
||||
return; // only act if client is running.
|
||||
myNetClient->SendChatMessage(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user