aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/interface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-08-20 22:17:26 -0700
committerPaul Gilbert2019-08-20 22:17:36 -0700
commit83a479470ff467ced73ee97e2d5ed7203071050a (patch)
tree70d2518504514c588ef7bf33f93658987db6ae78 /engines/xeen/interface.cpp
parentc64853de41bc8ecdf5c423e712ed606cb8089d64 (diff)
downloadscummvm-rg350-83a479470ff467ced73ee97e2d5ed7203071050a.tar.gz
scummvm-rg350-83a479470ff467ced73ee97e2d5ed7203071050a.tar.bz2
scummvm-rg350-83a479470ff467ced73ee97e2d5ed7203071050a.zip
XEEN: Fix applying characters' fire resistance when walking on lava
Diffstat (limited to 'engines/xeen/interface.cpp')
-rw-r--r--engines/xeen/interface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index 5b5b497250..0bf9363e87 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -639,12 +639,12 @@ void Interface::doStepCode() {
case SURFTYPE_LAVA:
// It burns, it burns!
damage = 100;
- party._damageType = DT_FIRE;
+ combat._damageType = DT_FIRE;
break;
case SURFTYPE_SKY:
// We can fly, we can.. oh wait, we can't!
damage = 100;
- party._damageType = DT_PHYSICAL;
+ combat._damageType = DT_PHYSICAL;
_falling = FALL_IN_PROGRESS;
break;
case SURFTYPE_DESERT:
@@ -654,7 +654,7 @@ void Interface::doStepCode() {
break;
case SURFTYPE_CLOUD:
if (!party._levitateCount) {
- party._damageType = DT_PHYSICAL;
+ combat._damageType = DT_PHYSICAL;
_falling = FALL_IN_PROGRESS;
damage = 100;
}