[Scummvm-cvs-logs] SF.net SVN: scummvm: [26598] scummvm/trunk/engines/agi/op_cmd.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Thu Apr 26 22:18:12 CEST 2007
Revision: 26598
http://scummvm.svn.sourceforge.net/scummvm/?rev=26598&view=rev
Author: sev
Date: 2007-04-26 13:18:12 -0700 (Thu, 26 Apr 2007)
Log Message:
-----------
Make AGIPAL support more robust
Modified Paths:
--------------
scummvm/trunk/engines/agi/op_cmd.cpp
Modified: scummvm/trunk/engines/agi/op_cmd.cpp
===================================================================
--- scummvm/trunk/engines/agi/op_cmd.cpp 2007-04-26 19:08:53 UTC (rev 26597)
+++ scummvm/trunk/engines/agi/op_cmd.cpp 2007-04-26 20:18:12 UTC (rev 26598)
@@ -1227,12 +1227,15 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list