aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorFilippos Karapetis2009-04-25 23:57:26 +0000
committerFilippos Karapetis2009-04-25 23:57:26 +0000
commit9af7d48a04ab8307e20543557717ba130dc37bf5 (patch)
tree640da193026934cea583e28ad48306b0bd346ec6 /engines/kyra
parent97f3277f8f7feed441b7aede7cc8b4efe1375efb (diff)
downloadscummvm-rg350-9af7d48a04ab8307e20543557717ba130dc37bf5.tar.gz
scummvm-rg350-9af7d48a04ab8307e20543557717ba130dc37bf5.tar.bz2
scummvm-rg350-9af7d48a04ab8307e20543557717ba130dc37bf5.zip
Changed the attacker parameter from 0 to 0xFFFF in inflictDamage() (which was probably the original intended value) and added a FIXME
svn-id: r40149
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sprites_lol.cpp4
1 files changed, 3 insertions, 1 deletions
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) {