Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3095


Ignore:
Timestamp:
May 27, 2009, 10:03:32 PM (16 years ago)
Author:
landauf
Message:

fixed standalone chat

File:
1 edited

Legend:

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

    r3074 r3095  
    9999bool Host::Chat(const std::string& message){
    100100  if(!instance_)
    101     return false;
     101  {
     102    for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it)
     103      it->incomingChat(message, 0);
     104    return true;
     105  }
    102106  return instance_->chat(message);
    103107}
     
    107111  {
    108112    for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it)
    109       it->incomingChat(message, 0);
     113      it->incomingChat(message, CLIENTID_UNKNOWN);
    110114    return true;
    111115  }
Note: See TracChangeset for help on using the changeset viewer.