Almost forgot: WorldTick hook, since ZScript doesn't have delays

This commit is contained in:
ZZYZX 2017-01-31 03:24:38 +02:00
commit 066b22af0a
4 changed files with 22 additions and 41 deletions

View file

@ -36,6 +36,7 @@
#include "r_utility.h"
#include "p_spec.h"
#include "g_levellocals.h"
#include "events.h"
extern gamestate_t wipegamestate;
@ -125,6 +126,8 @@ void P_Ticker (void)
/*Added by MC: Freeze mode.*/!(bglobal.freeze && players[i].Bot != NULL))
P_PlayerThink (&players[i]);
// [ZZ] call the WorldTick hook
E_WorldTick();
StatusBar->Tick (); // [RH] moved this here
level.Tick (); // [RH] let the level tick
DThinker::RunThinkers ();