Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Network|Client: Fully reset the local WorldSystem when leaving a server
  • Loading branch information
danij-deng committed Apr 13, 2014
1 parent 224e90d commit d0793c0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions doomsday/client/src/client/cl_main.cpp
Expand Up @@ -95,20 +95,12 @@ void Cl_CleanUp()
clientPaused = false;
handshakeReceived = false;

if(App_WorldSystem().hasMap())
{
Cl_ResetFrame();
App_WorldSystem().map().clearClMobjs();
}
// Reset the local world state.
App_WorldSystem().reset();

Cl_InitPlayers();
// Discard the translation tables for the server we've just left.
Cl_ResetTransTables();

if(App_WorldSystem().hasMap())
{
App_WorldSystem().map().clearClMovers();
}

GL_SetFilter(false);
}

Expand Down

0 comments on commit d0793c0

Please sign in to comment.