From 9af7d48a04ab8307e20543557717ba130dc37bf5 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 25 Apr 2009 23:57:26 +0000 Subject: Changed the attacker parameter from 0 to 0xFFFF in inflictDamage() (which was probably the original intended value) and added a FIXME svn-id: r40149 --- engines/kyra/sprites_lol.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/kyra') diff --git a/engines/kyra/sprites_lol.cpp b/engines/kyra/sprites_lol.cpp index 97a2e95875..a609847988 100644 --- a/engines/kyra/sprites_lol.cpp +++ b/engines/kyra/sprites_lol.cpp @@ -1242,7 +1242,9 @@ bool LoLEngine::chasePartyWithDistanceAttacks(MonsterInPlay *monster) { if (item) setItemPosition(item, _partyPosX, _partyPosY, 0, 1); - inflictDamage(i, 20, 0, 0, 2); + // FIXME: attacker is a uint16, and -1 was used here. It has been substituted with 0xFFFF, which could + // be the original intended value + inflictDamage(i, 20, 0xFFFF, 0, 2); } } else if (flyingObject == 3) { -- cgit v1.2.3