mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- 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:
parent
b9e771576f
commit
bac66d5b0e
1 changed files with 1 additions and 1 deletions
|
@ -117,13 +117,13 @@ void P_Ticker (void)
|
||||||
{
|
{
|
||||||
P_ThinkParticles (); // [RH] make the particles think
|
P_ThinkParticles (); // [RH] make the particles think
|
||||||
}
|
}
|
||||||
StatusBar->Tick (); // [RH] moved this here
|
|
||||||
|
|
||||||
for (i = 0; i<MAXPLAYERS; i++)
|
for (i = 0; i<MAXPLAYERS; i++)
|
||||||
if (playeringame[i] &&
|
if (playeringame[i] &&
|
||||||
/*Added by MC: Freeze mode.*/!(bglobal.freeze && players[i].isbot))
|
/*Added by MC: Freeze mode.*/!(bglobal.freeze && players[i].isbot))
|
||||||
P_PlayerThink (&players[i]);
|
P_PlayerThink (&players[i]);
|
||||||
|
|
||||||
|
StatusBar->Tick (); // [RH] moved this here
|
||||||
level.Tick (); // [RH] let the level tick
|
level.Tick (); // [RH] let the level tick
|
||||||
DThinker::RunThinkers ();
|
DThinker::RunThinkers ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue