diff options
author | Paul Gilbert | 2014-11-18 21:47:42 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 22:35:19 -0500 |
commit | 8e45582492cab277c5b53884f7ec9c0a22a6e4ca (patch) | |
tree | fa0e30fda9f927a254990106f0a3f1a730065784 /engines | |
parent | b2e67a69c6dd53f2ffa720eced127dff97eb856c (diff) | |
download | scummvm-rg350-8e45582492cab277c5b53884f7ec9c0a22a6e4ca.tar.gz scummvm-rg350-8e45582492cab277c5b53884f7ec9c0a22a6e4ca.tar.bz2 scummvm-rg350-8e45582492cab277c5b53884f7ec9c0a22a6e4ca.zip |
ACCESS: Add extra shouldQuit checks during title sequence
Diffstat (limited to 'engines')
-rw-r--r-- | engines/access/amazon/amazon_game.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp index d7ad12e721..dba1b6fb9c 100644 --- a/engines/access/amazon/amazon_game.cpp +++ b/engines/access/amazon/amazon_game.cpp @@ -273,8 +273,7 @@ void AmazonEngine::doTitle() { _player->_scrollAmount = 1; _pCount = 0; - while(true) { - _events->pollEvents(); + while (!shouldQuit()) { if (_events->_rightButton) { _skipStart = true; _room->clearRoom(); @@ -293,7 +292,7 @@ void AmazonEngine::doTitle() { if (_screen->_scrollCol + _screen->_vWindowWidth != _room->_playFieldWidth) { _screen->_scrollX += _player->_scrollAmount; - while (_screen->_scrollX >= TILE_WIDTH && !shouldQuit()) { + while (_screen->_scrollX >= TILE_WIDTH) { _screen->_scrollX -= TILE_WIDTH; ++_screen->_scrollCol; @@ -316,7 +315,7 @@ void AmazonEngine::doTitle() { g_system->delayMillis(10); } - while(true) { + while (!shouldQuit()) { _pCount = 0; _events->_vbCount = 3; if (_screen->_scrollRow + _screen->_vWindowHeight >= _room->_playFieldHeight) { |