From 0ce597db80bf76124d41649cf9e7ab5a1746c578 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Sat, 21 Mar 2009 20:24:36 +0000 Subject: LOL: - added drawing code for certain gfx (blood and slime spots on the floor, teleporters, ice walls) svn-id: r39599 --- engines/kyra/sprites_lol.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/kyra/sprites_lol.cpp') 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); -- cgit v1.2.3