[Orxonox-commit 500] r3059 - trunk/src/network

mockm at orxonox.net mockm at orxonox.net
Mon May 25 15:01:08 CEST 2009


Author: mockm
Date: 2009-05-25 15:01:08 +0200 (Mon, 25 May 2009)
New Revision: 3059

Modified:
   trunk/src/network/Host.cc
Log:
broadcast message in standalone works now

Modified: trunk/src/network/Host.cc
===================================================================
--- trunk/src/network/Host.cc	2009-05-25 12:45:57 UTC (rev 3058)
+++ trunk/src/network/Host.cc	2009-05-25 13:01:08 UTC (rev 3059)
@@ -106,10 +106,10 @@
   if(!instance_)
   {
     for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it)
-      it->incomingChat(message, playerID);
+      it->incomingChat(message, 0);
   }
-
-  return instance_->broadcast(message);
+  else
+    return instance_->broadcast(message);
 }
 
 bool Host::incomingChat(const std::string& message, unsigned int playerID){




More information about the Orxonox-commit mailing list