Changeset 1516 for code/branches/network/src/network/GameStateClient.cc
- Timestamp:
- Jun 2, 2008, 2:33:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/GameStateClient.cc
r1505 r1516 82 82 if (loadSnapshot(gs)){ 83 83 gameStateMap.insert(std::pair<int, GameState*>(gs->id, gs)); 84 COUT( 4) << "adding decoded gs with id: " << gs->id << " diffed from: " << gs->base_id << std::endl;84 COUT(5) << "adding decoded gs with id: " << gs->id << " diffed from: " << gs->base_id << std::endl; 85 85 last_diff_=gs->base_id; 86 86 //last_gamestate_=gs->id; … … 241 241 size+=it->getSize(); // size of the actual data of the synchronisable 242 242 size+=3*sizeof(int); // size of datasize, classID and objectID 243 COUT( 4) << "getpartialsnapshot: size: " << size << std::endl;243 COUT(5) << "getpartialsnapshot: size: " << size << std::endl; 244 244 } 245 245 //retval->data = (unsigned char*)malloc(size); … … 380 380 //std::cout << "length " << length << std::endl; 381 381 switch ( retval ) { 382 case Z_OK: COUT( 4) << "successfully decompressed" << std::endl; break;382 case Z_OK: COUT(5) << "successfully decompressed" << std::endl; break; 383 383 case Z_MEM_ERROR: COUT(1) << "not enough memory available" << std::endl; return NULL; 384 384 case Z_BUF_ERROR: COUT(2) << "not enough memory available in the buffer" << std::endl; return NULL; … … 399 399 400 400 GameState *GameStateClient::decode(GameState *old, GameStateCompressed *diff) { 401 COUT( 4) << "using diffed gamestate" << std::endl;401 COUT(5) << "using diffed gamestate" << std::endl; 402 402 GameState *t = decode(diff); 403 403 if(!t)
Note: See TracChangeset
for help on using the changeset viewer.