Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9048 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 3, 2006, 4:33:18 PM (18 years ago)
Author:
rennerc
Message:

removed some bugs

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  
    5858 
    5959  messageQueue.clear();
     60 
     61  this->messageHandlerMap.clear();
     62 
     63  MessageManager::singletonRef = NULL;
    6064}
    6165
  • branches/multi_player_map/src/lib/network/network_game_manager.cc

    r9008 r9048  
    7777 
    7878  PlayerStats::deleteAllPlayerStats();
     79 
     80  NetworkGameManager::singletonRef = NULL;
    7981}
    8082
     
    274276    if ( State::getPlayer()->getPlayable() != *it )
    275277    {
    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      }
    282289    }
    283290    it++;
  • branches/multi_player_map/src/lib/network/network_manager.cc

    r9041 r9048  
    7575    this->networkStream = NULL;
    7676  }
     77 
     78  NetworkManager::singletonRef = NULL;
    7779}
    7880
     
    144146  this->elapsedTime = 0.0f;
    145147
    146 //  if ( networkStream->isActive() )
     148  if ( networkStream )
    147149    networkStream->processData();
    148150 
Note: See TracChangeset for help on using the changeset viewer.