diff options
author | Strangerke | 2019-11-08 08:07:56 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-13 22:07:08 +0100 |
commit | 3e1431d4eaa12156018d214d53edc76f06e76a65 (patch) | |
tree | 068c4e7384ce3a23b7170d100e81750483685d6b /engines/griffon | |
parent | 1b2e826e7122db8cfd0ea9bde626653d3a8d086b (diff) | |
download | scummvm-rg350-3e1431d4eaa12156018d214d53edc76f06e76a65.tar.gz scummvm-rg350-3e1431d4eaa12156018d214d53edc76f06e76a65.tar.bz2 scummvm-rg350-3e1431d4eaa12156018d214d53edc76f06e76a65.zip |
GRIFFON: Fix save screen
Diffstat (limited to 'engines/griffon')
-rw-r--r-- | engines/griffon/dialogs.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/griffon/dialogs.cpp b/engines/griffon/dialogs.cpp index 82e8882c73..c5a4703085 100644 --- a/engines/griffon/dialogs.cpp +++ b/engines/griffon/dialogs.cpp @@ -479,6 +479,7 @@ void GriffonEngine::saveLoadNew() { _ticks = g_system->getMillis(); int ticks1 = _ticks; + int tickpause = _ticks + 150; _cloudImg->setAlpha(128, true); @@ -581,7 +582,7 @@ void GriffonEngine::saveLoadNew() { return; } - if (_event.type == Common::EVENT_KEYDOWN) { + if (tickpause < _ticks && _event.type == Common::EVENT_KEYDOWN) { _itemTicks = _ticks + 220; if (_event.kbd.keycode == Common::KEYCODE_RETURN) { @@ -596,10 +597,12 @@ void GriffonEngine::saveLoadNew() { // SAVE GAME lowerlock = true; curRow = 1 + _saveSlot; + tickpause = _ticks + 125; } else if (curCol == 2) { // LOAD GAME lowerlock = true; curRow = 1; + tickpause = _ticks + 125; } else if (curCol == 3) { // RETURN return; @@ -609,7 +612,7 @@ void GriffonEngine::saveLoadNew() { return; } } - if (lowerlock && curRow == 1) { + if (lowerlock && tickpause < _ticks) { if ((curCol == 1) && saveState(curRow - 1)) { _secStart += _secsingame; _secsingame = 0; @@ -632,6 +635,7 @@ void GriffonEngine::saveLoadNew() { loadMap(_curMap); mainLoop(); } + tickpause = _ticks + 125; } } @@ -641,12 +645,14 @@ void GriffonEngine::saveLoadNew() { return; lowerlock = false; curRow = 0; + tickpause = _ticks + 125; break; case Common::KEYCODE_DOWN: if (lowerlock) { ++curRow; if (curRow == 5) curRow = 1; + tickpause = _ticks + 125; } break; @@ -655,6 +661,7 @@ void GriffonEngine::saveLoadNew() { --curRow; if (curRow == 0) curRow = 4; + tickpause = _ticks + 125; } break; @@ -663,6 +670,7 @@ void GriffonEngine::saveLoadNew() { --curCol; if (curCol == -1) curCol = 3; + tickpause = _ticks + 125; } break; @@ -671,6 +679,7 @@ void GriffonEngine::saveLoadNew() { ++curCol; if (curCol == 4) curCol = 0; + tickpause = _ticks + 125; } break; default: |