[Scummvm-git-logs] scummvm master -> efd594993d7903185d3d20738a9f875e543b3328

dreammaster dreammaster at scummvm.org
Wed Aug 22 04:24:31 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
efd594993d TSAGE: Don't allow saving in Ringworld copy protection dialog


Commit: efd594993d7903185d3d20738a9f875e543b3328
    https://github.com/scummvm/scummvm/commit/efd594993d7903185d3d20738a9f875e543b3328
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-08-21T19:24:25-07:00

Commit Message:
TSAGE: Don't allow saving in Ringworld copy protection dialog

Changed paths:
    engines/tsage/ringworld/ringworld_logic.cpp


diff --git a/engines/tsage/ringworld/ringworld_logic.cpp b/engines/tsage/ringworld/ringworld_logic.cpp
index 354c86a..c656baf 100644
--- a/engines/tsage/ringworld/ringworld_logic.cpp
+++ b/engines/tsage/ringworld/ringworld_logic.cpp
@@ -198,15 +198,14 @@ Scene *RingworldGame::createScene(int sceneNumber) {
 bool RingworldGame::canLoadGameStateCurrently() {
 	// Don't allow a game to be loaded if a dialog is active
 	return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1);
-
 }
 
 /**
  * Returns true if it is currently okay to save the game
  */
 bool RingworldGame::canSaveGameStateCurrently() {
-	// Don't allow a game to be saved if a dialog is active
-	return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1);
+	// Don't allow a game to be saved if a dialog is active, or the copy protection dialog
+	return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1) && g_globals->_sceneManager._sceneNumber != 2310;
 }
 
 /*--------------------------------------------------------------------------*/





More information about the Scummvm-git-logs mailing list