aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v2.cpp
diff options
context:
space:
mode:
authorChristopher Page2008-07-08 00:16:55 +0000
committerChristopher Page2008-07-08 00:16:55 +0000
commita43f016b94dd9214f0c72ae1f999a3a265977116 (patch)
tree83b2ba0813e4659bd660872baab3ef81b0ce1f69 /engines/gob/inter_v2.cpp
parent41938b7644d2f1937f28641eac68218515e1f058 (diff)
downloadscummvm-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/inter_v2.cpp')
-rw-r--r--engines/gob/inter_v2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp
index cf74252e09..2d39fc0a65 100644
--- a/engines/gob/inter_v2.cpp
+++ b/engines/gob/inter_v2.cpp
@@ -24,6 +24,8 @@
*/
#include "common/endian.h"
+#include "common/events.h"
+
#include "sound/mixer.h"
#include "sound/mods/infogrames.h"
@@ -1483,7 +1485,7 @@ void Inter_v2::o2_scroll() {
curX = startX;
curY = startY;
- while (!_vm->_quit && ((curX != endX) || (curY != endY))) {
+ while (!g_system->getEventManager()->shouldQuit() && ((curX != endX) || (curY != endY))) {
curX = stepX > 0 ? MIN(curX + stepX, (int) endX) :
MAX(curX + stepX, (int) endX);
curY = stepY > 0 ? MIN(curY + stepY, (int) endY) :