mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
GRIFFON: Remove recursiveness of the main menu
This commit is contained in:
parent
008fbcab5b
commit
972a1474af
@ -186,10 +186,11 @@ void GriffonEngine::title(int mode) {
|
||||
case Common::KEYCODE_RETURN:
|
||||
switch(cursel) {
|
||||
case 0:
|
||||
saveLoadNew();
|
||||
_ticks = g_system->getMillis();
|
||||
keypause = _ticks + 150;
|
||||
ticks1 = _ticks;
|
||||
|
||||
exitTitle = true;
|
||||
break;
|
||||
case 1:
|
||||
configMenu();
|
||||
@ -546,7 +547,7 @@ void GriffonEngine::saveLoadNew() {
|
||||
_shouldQuit = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (lowerLock && tickpause < _ticks) {
|
||||
if ((curCol == 1) && saveState(curRow - 1)) {
|
||||
|
@ -117,12 +117,13 @@ Common::Error GriffonEngine::run() {
|
||||
if (_shouldQuit)
|
||||
return Common::kNoError;
|
||||
|
||||
title(0);
|
||||
while (!_shouldQuit) {
|
||||
title(0);
|
||||
|
||||
if (_shouldQuit)
|
||||
return Common::kNoError;
|
||||
if (!_shouldQuit)
|
||||
|
||||
saveLoadNew();
|
||||
saveLoadNew();
|
||||
}
|
||||
|
||||
return Common::kNoError;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user