Skip to content

Commit

Permalink
Make AGIPAL also accept 'pal.100' (Original hacked interpreter also d…
Browse files Browse the repository at this point in the history
…oes this).

svn-id: r30213
  • Loading branch information
Kari Salminen committed Jan 4, 2008
1 parent a1503bf commit 28bbae1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/agi/op_cmd.cpp
Original file line number Diff line number Diff line change
@@ -1332,9 +1332,9 @@ cmd(mouse_posn) {
cmd(shake_screen) {
int i;

// AGIPAL uses shake.screen values between 101 and 109 to
// set the palette.
if (p0 >= 101 && p0 < 110) {
// AGIPAL uses shake.screen values between 100 and 109 to set the palette
// (Checked the original AGIPAL-hack's shake.screen-routine's disassembly).
if (p0 >= 100 && p0 < 110) {
if (g_agi->getFeatures() & GF_AGIPAL) {
g_gfx->setAGIPal(p0);
return;

0 comments on commit 28bbae1

Please sign in to comment.