Changeset 8807 for code/branches/output/src/libraries/network/Client.cc
- Timestamp:
- Jul 31, 2011, 9:09:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/network/Client.cc
r8788 r8807 118 118 bool Client::processChat(const std::string& message, unsigned int playerID) 119 119 { 120 // COUT(1) << "Player " << playerID << ": " << message << std::endl;120 // orxout(message) << "Player " << playerID << ": " << message << endl; 121 121 return true; 122 122 } … … 124 124 void Client::printRTT() 125 125 { 126 COUT(0) << "Round trip time to server is " << ClientConnection::getRTT() << " ms" << endl;126 orxout(message) << "Round trip time to server is " << ClientConnection::getRTT() << " ms" << endl; 127 127 } 128 128 … … 150 150 { 151 151 timeSinceLastUpdate_ -= static_cast<unsigned int>( timeSinceLastUpdate_ / NETWORK_PERIOD ) * NETWORK_PERIOD; 152 // COUT(3) << '.';153 152 if ( isConnected() && isSynched_ ) 154 153 { 155 COUT(4) << "popping partial gamestate: " << std::endl;154 orxout(verbose, context::network) << "popping partial gamestate: " << endl; 156 155 // packet::Gamestate *gs = GamestateClient::getGamestate(); 157 156 if( GamestateManager::update() ) … … 166 165 //assert(gs); <--- there might be the case that no data has to be sent, so its commented out now 167 166 // if(gs){ 168 // COUT(4) << "client tick: sending gs " << gs << std::endl;167 // orxout(verbose, context::network) << "client tick: sending gs " << gs << endl; 169 168 // if( !gs->send() ) 170 // COUT(2) << "Problem adding partial gamestate to queue" << std::endl;169 // orxout(internal_warning, context::network) << "Problem adding partial gamestate to queue" << endl; 171 170 // // gs gets automatically deleted by enet callback 172 171 // }
Note: See TracChangeset
for help on using the changeset viewer.