Changeset 3198 for code/trunk/src/network/GamestateManager.cc
- Timestamp:
- Jun 20, 2009, 4:27:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/GamestateManager.cc
r3102 r3198 63 63 GamestateManager::~GamestateManager() 64 64 { 65 if( this->reference ) 66 delete this->reference; 67 for( std::map<unsigned int, packet::Gamestate*>::iterator it = gamestateQueue.begin(); it != gamestateQueue.end(); it++ ) 68 delete (*it).second; 65 69 delete trafficControl_; 66 70 } … … 133 137 // COUT(3) << "diffing" << std::endl; 134 138 // packet::Gamestate* gs1 = gs; 135 gs = gs->diff(client); 139 packet::Gamestate *diffed = gs->diff(client); 140 //packet::Gamestate *gs2 = diffed->undiff(gs); 141 // assert(*gs == *gs2); 142 gs = diffed; 136 143 // packet::Gamestate* gs2 = gs->undiff(client); 137 144 // gs = new packet::Gamestate(*gs);
Note: See TracChangeset
for help on using the changeset viewer.