From ed40842bad21f45d64a79d790259b9dff6a8b93d Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 1 Aug 2019 06:50:01 +0000 Subject: [PATCH] Apply "reset object trackers on savegame load" patch git-svn-id: https://svn.eduke32.com/eduke32@7860 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/savegame.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/duke3d/src/savegame.cpp b/source/duke3d/src/savegame.cpp index 055576db9..818f1d6b0 100644 --- a/source/duke3d/src/savegame.cpp +++ b/source/duke3d/src/savegame.cpp @@ -2516,6 +2516,16 @@ static void postloadplayer(int32_t savegamep) G_ResetTimers(0); #endif +#ifdef USE_STRUCT_TRACKERS + Bmemset(sectorchanged, 0, sizeof(sectorchanged)); + Bmemset(spritechanged, 0, sizeof(spritechanged)); + Bmemset(wallchanged, 0, sizeof(wallchanged)); +#endif + +#ifdef USE_OPENGL + Polymost_prepare_loadboard(); +#endif + #ifdef POLYMER //9 if (videoGetRenderMode() == REND_POLYMER)