mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 16:58:01 +00:00
ULTIMA8: Call gotHit event with correct parameters for Crusader
This commit is contained in:
parent
2e1880944d
commit
8cf85caca1
@ -1997,7 +1997,7 @@ void Item::receiveHitCru(uint16 other, Direction dir, int damage, uint16 type) {
|
||||
uint8 shouldCallUsecode = 1;
|
||||
|
||||
if (shouldCallUsecode)
|
||||
callUsecodeEvent_gotHit(other, 0);
|
||||
callUsecodeEvent_gotHit(0x4000, (type << 8) | (damage & 0xff));
|
||||
|
||||
if (damageInfo) {
|
||||
bool wasbroken = damageInfo->applyToItem(this, damage);
|
||||
|
Loading…
x
Reference in New Issue
Block a user