aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/xeen/interface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index 0bf9363e87..29dcce4ed0 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -680,6 +680,9 @@ void Interface::doStepCode() {
int oldTarget = combat._combatTarget;
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._combatTarget = oldTarget;