From e7df8b60e15b4106a54eaff138316b6568d56517 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 10 Oct 2013 20:46:22 -0400 Subject: TSAGE: Disable saving in R2R when actors have been copied to the background --- engines/tsage/core.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index 488eacceab..5261081caa 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -2814,6 +2814,12 @@ void BackgroundSceneObject::setup2(int visage, int stripFrameNum, int frameNum, void BackgroundSceneObject::copySceneToBackground() { GLOBALS._sceneManager._scene->_backSurface.copyFrom(g_globals->gfxManager().getSurface(), 0, 0); + + // WORKAROUND: Since savegames don't store the active screen data, once we copy the + // foreground objects to the background, we have to prevent the scene being saved. + // I do this the easiest way, by using the existing animationCtr global + if (g_vm->getGameID() == GType_Ringworld2) + ++R2_GLOBALS._animationCtr; } /*--------------------------------------------------------------------------*/ -- cgit v1.2.3