[Orxonox-commit 498] r3058 - trunk/src/network
scheusso at orxonox.net
scheusso at orxonox.net
Mon May 25 14:45:57 CEST 2009
Author: scheusso
Date: 2009-05-25 14:45:57 +0200 (Mon, 25 May 2009)
New Revision: 3058
Modified:
trunk/src/network/Host.cc
Log:
adjustment to be able to see chat messages in standalone mode
Modified: trunk/src/network/Host.cc
===================================================================
--- trunk/src/network/Host.cc 2009-05-25 12:30:56 UTC (rev 3057)
+++ trunk/src/network/Host.cc 2009-05-25 12:45:57 UTC (rev 3058)
@@ -104,7 +104,11 @@
bool Host::Broadcast(const std::string& message){
if(!instance_)
- return false;
+ {
+ for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it)
+ it->incomingChat(message, playerID);
+ }
+
return instance_->broadcast(message);
}
More information about the Orxonox-commit
mailing list