aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/combat.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index 00e89d6398..1452719c2b 100644
--- a/engines/xeen/combat.cpp
+++ b/engines/xeen/combat.cpp
@@ -254,7 +254,12 @@ void Combat::giveCharDamage(int damage, DamageType attackType, int charIndex) {
breakFlag = true;
}
+ // WORKAROUND: Flag a script in progress when pausing to prevent any pending combat starting prematurely
+ Mode oldMode = _vm->_mode;
+ _vm->_mode = MODE_SCRIPT_IN_PROGRESS;
events.ipause(5);
+ _vm->_mode = oldMode;
+
intf.drawParty(true);
party.checkPartyDead();
}