aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-12-13 01:26:40 +0000
committerTravis Howell2003-12-13 01:26:40 +0000
commitc7a6458849fac8db44c05eb74209ad33afc0812c (patch)
tree19fe52ee1727d9da902266a5bc06ceb3c0385bca
parentca9d9128ba325afae45b41f3431cd547927aa661 (diff)
downloadscummvm-rg350-c7a6458849fac8db44c05eb74209ad33afc0812c.tar.gz
scummvm-rg350-c7a6458849fac8db44c05eb74209ad33afc0812c.tar.bz2
scummvm-rg350-c7a6458849fac8db44c05eb74209ad33afc0812c.zip
Thereis no save slot 0 in simon games.
svn-id: r11607
-rw-r--r--simon/simon.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 27742b380b..c5c6cfce5c 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -4862,10 +4862,15 @@ void SimonEngine::delay(uint amount) {
while (_system->poll_event(&event)) {
switch (event.event_code) {
case OSystem::EVENT_KEYDOWN:
- if (event.kbd.keycode >= '0' && event.kbd.keycode<='9'
+ if (event.kbd.keycode >= '0' && event.kbd.keycode <='9'
&& (event.kbd.flags == OSystem::KBD_ALT ||
event.kbd.flags == OSystem::KBD_CTRL)) {
_saveLoadSlot = event.kbd.keycode - '0';
+
+ // There is no save slot 0
+ if (_saveLoadSlot == 0)
+ _saveLoadSlot = 10;
+
sprintf(_saveLoadName, "Quicksave %d", _saveLoadSlot);
_saveLoadFlag = (event.kbd.flags == OSystem::KBD_ALT) ? 1 : 2;