[Scummvm-git-logs] scummvm master -> e51766c768b9709dbf2d3b11171f42888ba547eb
bluegr
noreply at scummvm.org
Sun Nov 6 18:56:56 UTC 2022
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:
e51766c768 MADS: Disallow saving during cutscenes
Commit: e51766c768b9709dbf2d3b11171f42888ba547eb
https://github.com/scummvm/scummvm/commit/e51766c768b9709dbf2d3b11171f42888ba547eb
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2022-11-06T20:56:31+02:00
Commit Message:
MADS: Disallow saving during cutscenes
Cutscenes have no scene logic, so saving while a cutscene is played
would crash
Changed paths:
engines/mads/mads.cpp
diff --git a/engines/mads/mads.cpp b/engines/mads/mads.cpp
index ed531bb5d62..c2294d8fe49 100644
--- a/engines/mads/mads.cpp
+++ b/engines/mads/mads.cpp
@@ -186,7 +186,8 @@ bool MADSEngine::canLoadGameStateCurrently() {
bool MADSEngine::canSaveGameStateCurrently() {
return !_game->_winStatus && !_game->globals()[5]
&& _dialogs->_pendingDialog == DIALOG_NONE
- && _events->_cursorId != CURSOR_WAIT;
+ && _events->_cursorId != CURSOR_WAIT
+ && _game->_scene._sceneLogic;
}
void MADSEngine::syncSoundSettings() {
More information about the Scummvm-git-logs
mailing list