From 516815d5f5f47f3e83576975eaa3e95b64719340 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Thu, 23 Feb 2017 16:01:46 +0100 Subject: ADL: Fix hires6 canSaveGameStateCurrently() --- engines/adl/adl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/adl/adl.cpp') diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp index 1f0b0b173a..3887fa92d9 100644 --- a/engines/adl/adl.cpp +++ b/engines/adl/adl.cpp @@ -891,6 +891,12 @@ bool AdlEngine::canSaveGameStateCurrently() { // Here we check whether or not the game currently accepts the command // "SAVE GAME". This prevents saving via the GMM in situations where // it wouldn't otherwise be possible to do so. + for (cmd = _roomData.commands.begin(); cmd != _roomData.commands.end(); ++cmd) { + ScriptEnv env(*cmd, _state.room, _saveVerb, _saveNoun); + if (matchCommand(env)) + return env.op() == IDO_ACT_SAVE; + } + for (cmd = _roomCommands.begin(); cmd != _roomCommands.end(); ++cmd) { ScriptEnv env(*cmd, _state.room, _saveVerb, _saveNoun); if (matchCommand(env)) -- cgit v1.2.3