mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
XEEN: Fix giving lava damage after combat ends
This commit is contained in:
parent
0e691072bb
commit
b0913fcab3
@ -680,6 +680,9 @@ void Interface::doStepCode() {
|
|||||||
|
|
||||||
int oldTarget = combat._combatTarget;
|
int oldTarget = combat._combatTarget;
|
||||||
combat._combatTarget = 0;
|
combat._combatTarget = 0;
|
||||||
|
|
||||||
|
// WORKAROUND: Stepping into combat whilst on lava results in damageType being lost
|
||||||
|
combat._damageType = (surfaceId == SURFTYPE_LAVA) ? DT_FIRE : DT_PHYSICAL;
|
||||||
combat.giveCharDamage(damage, combat._damageType, 0);
|
combat.giveCharDamage(damage, combat._damageType, 0);
|
||||||
|
|
||||||
combat._combatTarget = oldTarget;
|
combat._combatTarget = oldTarget;
|
||||||
|
Loading…
Reference in New Issue
Block a user