TSAGE: Disable saving in R2R when actors have been copied to the background

This commit is contained in:
Paul Gilbert 2013-10-10 20:46:22 -04:00
parent 5b54a546e0
commit e7df8b60e1

View File

@ -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;
}
/*--------------------------------------------------------------------------*/