aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sprites_lol.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2009-03-21 20:24:36 +0000
committerFlorian Kagerer2009-03-21 20:24:36 +0000
commit0ce597db80bf76124d41649cf9e7ab5a1746c578 (patch)
treea92617492a6647c6a4463be54cf9635ddaa67735 /engines/kyra/sprites_lol.cpp
parentc26a162606a00711ee619eda6f6f94cbbb1d990c (diff)
downloadscummvm-rg350-0ce597db80bf76124d41649cf9e7ab5a1746c578.tar.gz
scummvm-rg350-0ce597db80bf76124d41649cf9e7ab5a1746c578.tar.bz2
scummvm-rg350-0ce597db80bf76124d41649cf9e7ab5a1746c578.zip
LOL: - added drawing code for certain gfx (blood and slime spots on the floor, teleporters, ice walls)
svn-id: r39599
Diffstat (limited to 'engines/kyra/sprites_lol.cpp')
-rw-r--r--engines/kyra/sprites_lol.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/kyra/sprites_lol.cpp b/engines/kyra/sprites_lol.cpp
index a2adbf9fb0..c7cbe98bfb 100644
--- a/engines/kyra/sprites_lol.cpp
+++ b/engines/kyra/sprites_lol.cpp
@@ -989,8 +989,7 @@ int LoLEngine::calcDrawingLayerParameters(int x1, int y1, int &x2, int &y2, uint
int l = y1 >> 5;
y2 = _monsterScaleY[l];
x2 = ((_monsterScaleX[l] * x1) >> 8) + 200;
- assert (_shpDmY - 56 < 66);
- w = h = _monsterScaleWH[_shpDmY - 56];
+ w = h = (_shpDmY > 120) ? 0x100 : _monsterScaleWH[_shpDmY - 56];
if (flip)
y2 = ((120 - y2) >> 1) + _screen->getShapeScaledHeight(shape, _dmScaleH);