diff options
author | Eugene Sandulenko | 2007-04-26 20:18:12 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-04-26 20:18:12 +0000 |
commit | a3ca3a3a3fbdb66b11ba17dbd3fcd06ded79a217 (patch) | |
tree | 92507f8b702e84ed838d37d903b774b8a9f4b705 | |
parent | d4660cce55e8b49d1387a8f117b370fe76361720 (diff) | |
download | scummvm-rg350-a3ca3a3a3fbdb66b11ba17dbd3fcd06ded79a217.tar.gz scummvm-rg350-a3ca3a3a3fbdb66b11ba17dbd3fcd06ded79a217.tar.bz2 scummvm-rg350-a3ca3a3a3fbdb66b11ba17dbd3fcd06ded79a217.zip |
Make AGIPAL support more robust
svn-id: r26598
-rw-r--r-- | engines/agi/op_cmd.cpp | 15 |
1 files 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 |