From a43f016b94dd9214f0c72ae1f999a3a265977116 Mon Sep 17 00:00:00 2001 From: Christopher Page Date: Tue, 8 Jul 2008 00:16:55 +0000 Subject: GOB works with the new GMM implementation svn-id: r32955 --- engines/gob/palanim.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/gob/palanim.cpp') diff --git a/engines/gob/palanim.cpp b/engines/gob/palanim.cpp index 2b1b34872a..25c5fb43b7 100644 --- a/engines/gob/palanim.cpp +++ b/engines/gob/palanim.cpp @@ -23,6 +23,8 @@ * */ +#include "common/events.h" + #include "gob/gob.h" #include "gob/palanim.h" #include "gob/global.h" @@ -131,7 +133,7 @@ void PalAnim::fade(Video::PalDesc *palDesc, int16 fadeV, int16 allColors) { bool stop; int16 i; - if (_vm->_quit) + if (g_system->getEventManager()->shouldQuit()) return; _fadeValue = (fadeV < 0) ? -fadeV : 2; -- cgit v1.2.3