From 1cf0ca3f750db2da781ef27a3463b754f370e39e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 4 Sep 2020 01:17:06 +0200 Subject: [PATCH] - save the global view variables in a savegame. I have no idea why but these did not get restored to something useful anymore. --- source/blood/src/loadsave.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blood/src/loadsave.cpp b/source/blood/src/loadsave.cpp index a29bcfe5e..5527dfd73 100644 --- a/source/blood/src/loadsave.cpp +++ b/source/blood/src/loadsave.cpp @@ -646,6 +646,8 @@ void MyLoadSave::Load(void) Read(&gMapRev, sizeof(gMapRev)); Read(&gSongId, sizeof(gSkyCount)); Read(&gFogMode, sizeof(gFogMode)); + Read(&gViewAngle, sizeof(gViewAngle)); + Read(&gViewLook, sizeof(gViewLook)); #ifdef NOONE_EXTENSIONS Read(&gModernMap, sizeof(gModernMap)); #endif @@ -732,6 +734,8 @@ void MyLoadSave::Save(void) Write(&gMapRev, sizeof(gMapRev)); Write(&gSongId, sizeof(gSkyCount)); Write(&gFogMode, sizeof(gFogMode)); + Write(&gViewAngle, sizeof(gViewAngle)); + Write(&gViewLook, sizeof(gViewLook)); #ifdef NOONE_EXTENSIONS Write(&gModernMap, sizeof(gModernMap)); #endif