- fixed: The static event manager never got a link to the primary level.

This commit is contained in:
Christoph Oelckers 2019-02-06 15:33:19 +01:00
commit f38060d01b
4 changed files with 6 additions and 5 deletions

View file

@ -423,7 +423,7 @@ void P_SetupLevel(FLevelLocals *Level, int position, bool newGame)
// [ZZ] init per-map static handlers. we need to call this before everything is set up because otherwise scripts don't receive PlayerEntered event
// (which happens at god-knows-what stage in this function, but definitely not the last part, because otherwise it'd work to put E_InitStaticHandlers before the player spawning)
Level->localEventManager->InitStaticHandlers(true);
Level->localEventManager->InitStaticHandlers(Level, true);
// generate a checksum for the level, to be included and checked with savegames.
map->GetChecksum(Level->md5);