- Moved the status bar Tick call after the players have been ticked by P_Ticker(), because

P_PlayerThink() is where the check for unspawned players happens. If the player attached to the
  status bar is one of them, it will crash while ticking.

SVN r4334 (trunk)
This commit is contained in:
Randy Heit 2013-06-06 20:34:39 +00:00
parent b9e771576f
commit bac66d5b0e
1 changed files with 1 additions and 1 deletions

View File

@ -117,13 +117,13 @@ void P_Ticker (void)
{
P_ThinkParticles (); // [RH] make the particles think
}
StatusBar->Tick (); // [RH] moved this here
for (i = 0; i<MAXPLAYERS; i++)
if (playeringame[i] &&
/*Added by MC: Freeze mode.*/!(bglobal.freeze && players[i].isbot))
P_PlayerThink (&players[i]);
StatusBar->Tick (); // [RH] moved this here
level.Tick (); // [RH] let the level tick
DThinker::RunThinkers ();