Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 19, 2010, 5:48:01 PM (14 years ago)
Author:
landauf
Message:

removed unnecessary return values from console commands "log", "error", "warning", "info", and "debug"
removed return value from console command Chat (the non-static chat functions still return a bool)
config and tconfig don't return a bool anymore but instead print an error if the config value doesn't exist.

fixed console command "printRTT" - it shouldn't crash on a standalone system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/network/Host.cc

    r7163 r7190  
    8989  }
    9090
    91   bool Host::Chat(const std::string& message)
     91  void Host::Chat(const std::string& message)
    9292  {
    9393    if(instances_s.size()==0)
     
    9595      for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it)
    9696        it->incomingChat(message, 0);
    97       return true;
     97//      return true;
    9898    }
    9999    else
     
    108108        }
    109109      }
    110       return result;
     110//      return result;
    111111    }
    112112  }
     
    139139    for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it)
    140140      it->incomingChat(message, playerID);
    141    
     141
    142142    bool result = true;
    143143    for( std::vector<Host*>::iterator it = instances_s.begin(); it!=instances_s.end(); ++it )
Note: See TracChangeset for help on using the changeset viewer.