Changeset 1742 for code/branches/network/src/network/GamestateManager.cc
- Timestamp:
- Sep 8, 2008, 2:21:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/GamestateManager.cc
r1741 r1742 131 131 packet::Gamestate *gs; 132 132 int gID = ClientInformation::findClient(clientID)->getGamestateID(); 133 COUT(4) << "G.St.Man: popgamestate: sending gstate_id: " << id_ << " diffed from: " << gID << std::endl; 134 // COUT(3) << "gamestatemap: " << &gameStateMap << std::endl; 133 //COUT(4) << "G.St.Man: popgamestate: sending gstate_id: " << id_ << " diffed from: " << gID << std::endl; 135 134 //chose wheather the next gamestate is the first or not 136 135 if(gID != GAMESTATEID_INITIAL){ … … 147 146 gs = new packet::Gamestate(*reference); 148 147 } 149 #ifndef NDEBUG150 packet::Gamestate *ns = new packet::Gamestate(*gs);151 ns->compressData();152 ns->decompressData();153 assert(*gs==*ns);154 delete ns;155 #endif156 148 assert(gs->compressData()); 157 149 return gs;
Note: See TracChangeset
for help on using the changeset viewer.