From a3ca3a3a3fbdb66b11ba17dbd3fcd06ded79a217 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 26 Apr 2007 20:18:12 +0000 Subject: Make AGIPAL support more robust svn-id: r26598 --- engines/agi/op_cmd.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index d55963f670..ade933fb2f 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -1227,12 +1227,15 @@ cmd(mouse_posn) { cmd(shake_screen) { int i; - /* AGIPAL uses shake.screen values between 101 and 109 to - * set the palette. - */ - if ((g_agi->getFeatures() & GF_AGIPAL) && p0 >= 101 && p0 < 110) { - g_gfx->setAGIPal(p0); - return; + // AGIPAL uses shake.screen values between 101 and 109 to + // set the palette. + if (p0 >= 101 && p0 < 110) { + if (g_agi->getFeatures() & GF_AGIPAL) { + g_gfx->setAGIPal(p0); + return; + } else { + warning("It looks like GF_AGIPAL flag is missing"); + } } // Disables input while shaking to prevent bug -- cgit v1.2.3