From 9414fd29958d86216a621ef200e5ab25c91aa3e1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 28 Sep 2010 15:14:53 +0000 Subject: [PATCH] - 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) --- src/g_level.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_level.cpp b/src/g_level.cpp index 610a1108a7..62eb809aad 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -941,6 +941,7 @@ void G_DoLoadLevel (int position, bool autosave) level.flags2 &= ~LEVEL2_NOMONSTERS; } + level.maptime = 0; P_SetupLevel (level.mapname, position); AM_LevelInit(); @@ -982,7 +983,6 @@ void G_DoLoadLevel (int position, bool autosave) } level.starttime = gametic; - level.maptime = 0; G_UnSnapshotLevel (!savegamerestore); // [RH] Restore the state of the level. G_FinishTravel (); if (players[consoleplayer].camera == NULL ||