Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3058


Ignore:
Timestamp:
May 25, 2009, 2:45:57 PM (16 years ago)
Author:
scheusso
Message:

adjustment to be able to see chat messages in standalone mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/Host.cc

    r2773 r3058  
    105105bool Host::Broadcast(const std::string& message){
    106106  if(!instance_)
    107     return false;
     107  {
     108    for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it)
     109      it->incomingChat(message, playerID);
     110  }
     111
    108112  return instance_->broadcast(message);
    109113}
Note: See TracChangeset for help on using the changeset viewer.