aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/scripts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/scripts.cpp')
-rw-r--r--engines/xeen/scripts.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index 0a14de0c82..dd41ee693e 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -95,7 +95,7 @@ Scripts::Scripts(XeenEngine *vm) : _vm(vm) {
_lineNum = 0;
_charIndex = 0;
_v2 = 0;
- _nEdamageType = 0;
+ _nEdamageType = DT_PHYSICAL;
_animCounter = 0;
_eventSkipped = false;
_mirrorId = -1;
@@ -147,7 +147,7 @@ int Scripts::checkEvents() {
_currentPos = party._mazePosition;
_charIndex = 1;
_v2 = 1;
- _nEdamageType = 0;
+ _nEdamageType = DT_PHYSICAL;
// int var40 = -1;
while (!_vm->shouldQuit() && _lineNum >= 0) {
@@ -1615,8 +1615,7 @@ bool Scripts::ifProc(int action, uint32 mask, int mode, int charIndex) {
v = party._food;
break;
case 69:
- // Test for Levitate being active
- v = party._levitateActive ? 1 : 0;
+ v = party._levitateCount;
break;
case 70:
// Amount of light