- Timestamp:
- Apr 10, 2008, 1:51:55 PM (17 years ago)
- Location:
- code/branches/network/src/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/GameStateClient.cc
r1008 r1013 179 179 180 180 GameState *GameStateClient::decompress(GameStateCompressed *a) { 181 COUT(4) << "GameStateClient: uncompressing gamestate. id: " << a->id << ", baseid: " << a->base_id << ", normsize: " << a->normsize << ", compsize: " << a->compsize << std::endl; 181 182 int normsize = a->normsize; 182 183 int compsize = a->compsize; -
code/branches/network/src/network/GameStateManager.cc
r1011 r1013 67 67 } 68 68 69 70 /** 71 * this function is used to keep the memory usage low 72 * it tries to delete all the unused gamestates 73 * 74 * 75 */ 69 76 void GameStateManager::cleanup(){ 70 /*unsigned int min_id=-1;71 int temp_id=0;72 ClientInformation *temp = head_;73 while(temp){74 if(temp->head)75 continue;76 temp_id=temp->getID();77 if(temp_id<min_id)78 min_id=temp_id;79 temp=temp->next();80 }*/ // probably not very efficient81 82 77 std::map<int,int>::iterator it = gameStateUsed.begin(); 83 78 while(it!=gameStateUsed.end()){
Note: See TracChangeset
for help on using the changeset viewer.