Implemented global EventHandlers in MAPINFO

This commit is contained in:
ZZYZX 2017-01-22 09:58:48 +02:00
commit efb1e5d33a
6 changed files with 47 additions and 31 deletions

View file

@ -1068,6 +1068,8 @@ void G_DoLoadLevel (int position, bool autosave)
StatusBar->AttachToPlayer (&players[consoleplayer]);
// [ZZ] init per-map static handlers
E_InitStaticHandlers(true);
// call map load hook
E_MapLoaded();
P_DoDeferedScripts (); // [RH] Do script actions that were triggered on another map.
if (demoplayback || oldgs == GS_STARTUP || oldgs == GS_TITLELEVEL)