- Static NewGame events now fire before loading a map, and normal NewGame events fire after registering per-map handlers and before all other events.

- Static event handlers now unregister after per-map handlers.
- All event handlers now unregister in reverse order.
This commit is contained in:
player701 2018-10-31 10:15:56 +03:00 committed by Christoph Oelckers
commit 04ae32f6f9
7 changed files with 33 additions and 21 deletions

View file

@ -138,7 +138,7 @@ bool P_CheckMapData(const char * mapname);
// [RH] The only parameter used is mapname, so I removed playermask and skill.
// On September 1, 1998, I added the position to indicate which set
// of single-player start spots should be spawned in the level.
void P_SetupLevel (const char *mapname, int position);
void P_SetupLevel (const char *mapname, int position, bool newGame);
void P_FreeLevelData();
void P_FreeExtraLevelData();