diff options
author | Christopher Page | 2008-07-08 00:16:55 +0000 |
---|---|---|
committer | Christopher Page | 2008-07-08 00:16:55 +0000 |
commit | a43f016b94dd9214f0c72ae1f999a3a265977116 (patch) | |
tree | 83b2ba0813e4659bd660872baab3ef81b0ce1f69 /engines/gob/game_v2.cpp | |
parent | 41938b7644d2f1937f28641eac68218515e1f058 (diff) | |
download | scummvm-rg350-a43f016b94dd9214f0c72ae1f999a3a265977116.tar.gz scummvm-rg350-a43f016b94dd9214f0c72ae1f999a3a265977116.tar.bz2 scummvm-rg350-a43f016b94dd9214f0c72ae1f999a3a265977116.zip |
GOB works with the new GMM implementation
svn-id: r32955
Diffstat (limited to 'engines/gob/game_v2.cpp')
-rw-r--r-- | engines/gob/game_v2.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/gob/game_v2.cpp b/engines/gob/game_v2.cpp index e794bda17c..cf7beec031 100644 --- a/engines/gob/game_v2.cpp +++ b/engines/gob/game_v2.cpp @@ -24,6 +24,7 @@ */ #include "common/endian.h" +#include "common/events.h" #include "common/stream.h" #include "gob/gob.h" @@ -70,7 +71,7 @@ void Game_v2::playTot(int16 skipPlay) { strcpy(savedTotName, _curTotFile); if (skipPlay <= 0) { - while (!_vm->_quit) { + while (!g_system->getEventManager()->shouldQuit()) { if (_vm->_inter->_variables) _vm->_draw->animateCursor(4); @@ -438,7 +439,7 @@ int16 Game_v2::checkCollisions(byte handleMouse, int16 deltaTime, int16 *pResId, timeKey = _vm->_util->getTimeKey(); while (1) { - if (_vm->_inter->_terminate || _vm->_quit) { + if (_vm->_inter->_terminate || g_system->getEventManager()->shouldQuit()) { if (handleMouse) _vm->_draw->blitCursor(); return 0; @@ -1043,7 +1044,7 @@ void Game_v2::collisionsBlock(void) { WRITE_VAR(16, 0); _activeCollResId = 0; } - while ((_activeCollResId == 0) && !_vm->_inter->_terminate && !_vm->_quit); + while ((_activeCollResId == 0) && !_vm->_inter->_terminate && !g_system->getEventManager()->shouldQuit()); if ((_activeCollResId & 0xFFF) == collResId) { collStackPos = 0; @@ -1465,7 +1466,7 @@ int16 Game_v2::inputArea(int16 xPos, int16 yPos, int16 width, int16 height, key = checkCollisions(handleMouse, -300, collResId, collIndex); if ((key != 0) || (*collResId != 0) || - _vm->_inter->_terminate || _vm->_quit) + _vm->_inter->_terminate || g_system->getEventManager()->shouldQuit()) break; if (*pTotTime > 0) { @@ -1479,7 +1480,7 @@ int16 Game_v2::inputArea(int16 xPos, int16 yPos, int16 width, int16 height, } if ((key == 0) || (*collResId != 0) || - _vm->_inter->_terminate || _vm->_quit) + _vm->_inter->_terminate || g_system->getEventManager()->shouldQuit()) return 0; switch (key) { |