aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sprite.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-04-24 15:43:16 +0000
committerFilippos Karapetis2007-04-24 15:43:16 +0000
commitaa8fa78f623b8a20eaa496f16cd29193668c9cff (patch)
treef1f3b06ab5d7a85073c3b9d74740407126d82def /engines/agi/sprite.cpp
parent5c3cd349636e8da7a6993d1cb041b011d45b6d62 (diff)
downloadscummvm-rg350-aa8fa78f623b8a20eaa496f16cd29193668c9cff.tar.gz
scummvm-rg350-aa8fa78f623b8a20eaa496f16cd29193668c9cff.tar.bz2
scummvm-rg350-aa8fa78f623b8a20eaa496f16cd29193668c9cff.zip
Patch #1705791: Patch for #1648396 - AGI : SQ2 / 2.0F / IBM / priority line
Modify a workaround made for SQ1 to work on SQ1 only, not all AGI games. This fixes bug #1648396 with SQ2, a bug with LSL1 (Sarien bug #925074) and possibly others svn-id: r26589
Diffstat (limited to 'engines/agi/sprite.cpp')
-rw-r--r--engines/agi/sprite.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/agi/sprite.cpp b/engines/agi/sprite.cpp
index 8a67f2e60e..e4cb6ed175 100644
--- a/engines/agi/sprite.cpp
+++ b/engines/agi/sprite.cpp
@@ -618,10 +618,12 @@ void SpritesMgr::addToPic(int view, int loop, int cel, int x, int y, int pri, in
/* add rectangle around object, don't clobber control
* info in priority data. The box extends to the end of
* its priority band!
- *
- * SQ1 needs +1 (see bug #810331)
*/
- y3 = (y2 / 12) * 12 + 1;
+ y3 = (y2 / 12) * 12;
+
+ // SQ1 needs +1 (see bug #810331)
+ if (_vm->getFeatures() & GF_SQ1)
+ y3++;
// don't let box extend below y.
if (y3 > y2) y3 = y2;