- Timestamp:
- Dec 29, 2010, 11:41:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network6/src/libraries/network/GamestateManager.cc
r7801 r7825 149 149 newID = ++id_; 150 150 else 151 { 152 assert(peerMap_.size()!=0); 151 153 newID = peerMap_[NETWORK_PEER_ID_SERVER].lastProcessedGamestateID; 154 } 152 155 153 156 if(!currentGamestate_->collectData(newID, gsMode)){ //we have no data to send … … 172 175 continue; 173 176 } 174 COUT( 4) << "client id: " << peerIt->first << std::endl;177 COUT(5) << "client id: " << peerIt->first << std::endl; 175 178 COUT(5) << "Server: doing gamestate gamestate preparation" << std::endl; 176 179 int peerID = peerIt->first; //get client id … … 244 247 // assert(b); 245 248 clock.capture(); 246 COUT( 4) << "diff and compress time: " << clock.getDeltaTime() << endl;249 COUT(5) << "diff and compress time: " << clock.getDeltaTime() << endl; 247 250 // COUT(5) << "sending gamestate with id " << gs->getID(); 248 251 // if(gamestate->isDiffed())
Note: See TracChangeset
for help on using the changeset viewer.