Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2009, 8:25:30 PM (15 years ago)
Author:
scheusso
Message:

(kind of) fixed HumanPlayer bodys beeing around from clients that have not yet disconnected when unloading level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gamestates/GSLevel.cc

    r5929 r5966  
    117117        if (GameMode::showsGraphics())
    118118        {
    119             // disconnect the HumanPlayer
    120             PlayerManager::getInstance().clientDisconnected(0);
    121            
    122119            // unload all compositors (this is only necessary because we don't yet destroy all resources!)
    123120            Ogre::CompositorManager::getSingleton().removeAll();
     
    125122            InputManager::getInstance().leaveState("game");
    126123        }
     124       
     125        // disconnect all HumanPlayers
     126        PlayerManager::getInstance().disconnectAllClients();
    127127
    128128        if (GameMode::isMaster())
Note: See TracChangeset for help on using the changeset viewer.