diff options
author | Eric Fry | 2018-06-25 22:21:51 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | d77dd6c14ab6c41513ed282597a6da82289061e8 (patch) | |
tree | dbe1fbbc37a2d155c68130aafc9024e9d7731462 /engines/illusions/duckman/illusions_duckman.cpp | |
parent | 92e74327e6cd92b9764c851f99f02a9fa238051f (diff) | |
download | scummvm-rg350-d77dd6c14ab6c41513ed282597a6da82289061e8.tar.gz scummvm-rg350-d77dd6c14ab6c41513ed282597a6da82289061e8.tar.bz2 scummvm-rg350-d77dd6c14ab6c41513ed282597a6da82289061e8.zip |
ILLUSIONS: Pause voice when entering in-game menu
Wire up load fail dialog when trying to restart from unsaved new game.
Diffstat (limited to 'engines/illusions/duckman/illusions_duckman.cpp')
-rw-r--r-- | engines/illusions/duckman/illusions_duckman.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/illusions/duckman/illusions_duckman.cpp b/engines/illusions/duckman/illusions_duckman.cpp index 6ce29de8c6..38d3bab43c 100644 --- a/engines/illusions/duckman/illusions_duckman.cpp +++ b/engines/illusions/duckman/illusions_duckman.cpp @@ -1238,6 +1238,10 @@ void IllusionsEngine_Duckman::playTriggerCauseSound(uint32 verbId, uint32 object } bool IllusionsEngine_Duckman::loadSavegameFromScript(int16 slotNum, uint32 callingThreadId) { + if (_savegameSlotNum < 0) { + return false; // TODO need to handle reset from new game (without exising savegame). + } + const char *fileName = getSavegameFilename(_savegameSlotNum); bool success = loadgame(fileName); if (success) |