diff options
author | Johannes Schickel | 2008-05-10 18:56:00 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-10 18:56:00 +0000 |
commit | f930fff0d12c55e63140f45f4aee2c933f59aa63 (patch) | |
tree | e551871917f7e4e8c295591fc48ef7961b7dd377 | |
parent | a00df8dff1effc72a7b4bb03e88baf214308a39e (diff) | |
download | scummvm-rg350-f930fff0d12c55e63140f45f4aee2c933f59aa63.tar.gz scummvm-rg350-f930fff0d12c55e63140f45f4aee2c933f59aa63.tar.bz2 scummvm-rg350-f930fff0d12c55e63140f45f4aee2c933f59aa63.zip |
Set _quitFlag when receiving quit event in kyra2/kyra3 main menu.
svn-id: r31984
-rw-r--r-- | engines/kyra/gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp index d2e02671c9..8ce513d77c 100644 --- a/engines/kyra/gui.cpp +++ b/engines/kyra/gui.cpp @@ -467,8 +467,10 @@ int MainMenu::handle(int dim) { _system->delayMillis(10); } - if (_quitFlag) + if (_quitFlag) { + _vm->quitGame(); command = -1; + } _screen->copyRegion(backUpX, backUpY, backUpX, backUpY, backUpWidth, backUpHeight, 3, 0); _screen->_charWidth = charWidthBackUp; |