mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
- 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:
parent
5a3b3631c3
commit
9414fd2995
1 changed files with 1 additions and 1 deletions
|
@ -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 ||
|
||||||
|
|
Loading…
Reference in a new issue