- fixed: G_DoLoadLevel must reset level.maptime before calling P_SetupLevel or all actors that read it in their BeginPlay method get the wrong time.

SVN r2860 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-28 15:14:53 +00:00
parent 5a3b3631c3
commit 9414fd2995

View file

@ -941,6 +941,7 @@ void G_DoLoadLevel (int position, bool autosave)
level.flags2 &= ~LEVEL2_NOMONSTERS; level.flags2 &= ~LEVEL2_NOMONSTERS;
} }
level.maptime = 0;
P_SetupLevel (level.mapname, position); P_SetupLevel (level.mapname, position);
AM_LevelInit(); AM_LevelInit();
@ -982,7 +983,6 @@ void G_DoLoadLevel (int position, bool autosave)
} }
level.starttime = gametic; level.starttime = gametic;
level.maptime = 0;
G_UnSnapshotLevel (!savegamerestore); // [RH] Restore the state of the level. G_UnSnapshotLevel (!savegamerestore); // [RH] Restore the state of the level.
G_FinishTravel (); G_FinishTravel ();
if (players[consoleplayer].camera == NULL || if (players[consoleplayer].camera == NULL ||