aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTravis Howell2009-07-23 10:54:12 +0000
committerTravis Howell2009-07-23 10:54:12 +0000
commit33929b5248c754d10b018e6f87b9ebe99c968c02 (patch)
treeefeeb59b488fc50c4823360a2c4fe00e1f39570f /engines/scumm
parent53783575d8291c9cf29db6c78029c2a5ac977081 (diff)
downloadscummvm-rg350-33929b5248c754d10b018e6f87b9ebe99c968c02.tar.gz
scummvm-rg350-33929b5248c754d10b018e6f87b9ebe99c968c02.tar.bz2
scummvm-rg350-33929b5248c754d10b018e6f87b9ebe99c968c02.zip
Only autosave in supported scenes.
svn-id: r42677
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/scumm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 42fbb590b3..bdc2a4d387 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -1896,7 +1896,7 @@ void ScummEngine::scummLoop(int delta) {
}
// Trigger autosave if necessary.
- if (!_saveLoadFlag && shouldPerformAutoSave(_lastSaveTime)) {
+ if (!_saveLoadFlag && shouldPerformAutoSave(_lastSaveTime) && canSaveGameStateCurrently()) {
_saveLoadSlot = 0;
sprintf(_saveLoadName, "Autosave %d", _saveLoadSlot);
_saveLoadFlag = 1;