Chat messages are now working.

This commit is contained in:
lotodore
2007-05-25 16:03:12 +00:00
parent d01ecaf885
commit 13a731e041
21 changed files with 761 additions and 337 deletions
+5 -5
View File
@@ -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);
}