Changeset 7190 for code/branches/consolecommands3/src/libraries/network
- Timestamp:
- Aug 19, 2010, 5:48:01 PM (14 years ago)
- Location:
- code/branches/consolecommands3/src/libraries/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/network/ClientConnection.cc
r6417 r7190 149 149 uint32_t ClientConnection::getRTT() 150 150 { 151 assert(server_); 152 return server_->roundTripTime; 151 if (server_) 152 return server_->roundTripTime; 153 else 154 return 0; 153 155 } 154 156 -
code/branches/consolecommands3/src/libraries/network/Host.cc
r7163 r7190 89 89 } 90 90 91 boolHost::Chat(const std::string& message)91 void Host::Chat(const std::string& message) 92 92 { 93 93 if(instances_s.size()==0) … … 95 95 for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it) 96 96 it->incomingChat(message, 0); 97 return true;97 // return true; 98 98 } 99 99 else … … 108 108 } 109 109 } 110 return result;110 // return result; 111 111 } 112 112 } … … 139 139 for (ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it) 140 140 it->incomingChat(message, playerID); 141 141 142 142 bool result = true; 143 143 for( std::vector<Host*>::iterator it = instances_s.begin(); it!=instances_s.end(); ++it ) -
code/branches/consolecommands3/src/libraries/network/Host.h
r7163 r7190 79 79 static void setShipID(unsigned int id){ shipID_s = id; } 80 80 static bool isServer(); 81 static boolChat(const std::string& message);81 static void Chat(const std::string& message); 82 82 static bool Broadcast(const std::string& message); 83 83 static bool incomingChat(const std::string& message, unsigned int playerID);
Note: See TracChangeset
for help on using the changeset viewer.