- Timestamp:
- Jul 3, 2006, 4:33:18 PM (18 years ago)
- Location:
- branches/multi_player_map/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multi_player_map/src/lib/network/message_manager.cc
r8708 r9048 58 58 59 59 messageQueue.clear(); 60 61 this->messageHandlerMap.clear(); 62 63 MessageManager::singletonRef = NULL; 60 64 } 61 65 -
branches/multi_player_map/src/lib/network/network_game_manager.cc
r9008 r9048 77 77 78 78 PlayerStats::deleteAllPlayerStats(); 79 80 NetworkGameManager::singletonRef = NULL; 79 81 } 80 82 … … 274 276 if ( State::getPlayer()->getPlayable() != *it ) 275 277 { 276 PRINTF(0)("Delete unused playable: %s owner: %d\n", (*it)->getClassName(), (*it)->getOwner() ); 277 std::list<Playable*>::iterator delit = it; 278 it++; 279 delete *delit; 280 playablesToDelete.erase( delit ); 281 continue; 278 const std::list<BaseObject*> * list = ClassList::getList( CL_PLAYABLE ); 279 280 if ( list && std::find( list->begin(), list->end(), *it ) != list->end() ) 281 { 282 PRINTF(0)("Delete unused playable: %s owner: %d\n", (*it)->getClassName(), (*it)->getOwner() ); 283 std::list<Playable*>::iterator delit = it; 284 it++; 285 delete *delit; 286 playablesToDelete.erase( delit ); 287 continue; 288 } 282 289 } 283 290 it++; -
branches/multi_player_map/src/lib/network/network_manager.cc
r9041 r9048 75 75 this->networkStream = NULL; 76 76 } 77 78 NetworkManager::singletonRef = NULL; 77 79 } 78 80 … … 144 146 this->elapsedTime = 0.0f; 145 147 146 // if ( networkStream->isActive())148 if ( networkStream ) 147 149 networkStream->processData(); 148 150
Note: See TracChangeset
for help on using the changeset viewer.