From 38737e9c07c04f53f2f00f81f1bade3e70ca7f12 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Sun, 5 Apr 2009 13:15:33 +0000 Subject: LOL: fix monsters' strange sliding to the left (like that thug at the beginning) svn-id: r39863 --- engines/kyra/sprites_lol.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engines/kyra/sprites_lol.cpp b/engines/kyra/sprites_lol.cpp index 1350f41710..7d8ca049a3 100644 --- a/engines/kyra/sprites_lol.cpp +++ b/engines/kyra/sprites_lol.cpp @@ -1370,7 +1370,7 @@ void LoLEngine::rearrangeAttackingMonster(MonsterInPlay *monster) { if (centered) { bool r = false; - if (_levelBlockProperties[monster->blockPropertyIndex].assignedObjects & 0x8000) { + if (monster->nextAssignedObject & 0x8000) { r = true; } else { uint16 id = _levelBlockProperties[monster->blockPropertyIndex].assignedObjects; @@ -1381,8 +1381,7 @@ void LoLEngine::rearrangeAttackingMonster(MonsterInPlay *monster) { } else { for (int i = 0; i < 3; i++) { t = (t + 1) & 3; - calcNewBlockPosition(monster->blockPropertyIndex, t); - id = _levelBlockProperties[monster->blockPropertyIndex].assignedObjects; + id = _levelBlockProperties[calcNewBlockPosition(monster->blockPropertyIndex, t)].assignedObjects; id = (id & 0x8000) ? (id & 0x7fff) : 0xffff; if (id != 0xffff) r = true; -- cgit v1.2.3