aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-28 21:53:59 -0400
committerPaul Gilbert2018-03-28 21:53:59 -0400
commitfc03c1e71cef6e50e8e809452f0af94d75643ac3 (patch)
tree6939566b549b1628c0a9719e0da0c64d2dcf6164 /engines/xeen/dialogs
parent78db92eb33dbc5fd0a32399294d9ba67690c4bd4 (diff)
downloadscummvm-rg350-fc03c1e71cef6e50e8e809452f0af94d75643ac3.tar.gz
scummvm-rg350-fc03c1e71cef6e50e8e809452f0af94d75643ac3.tar.bz2
scummvm-rg350-fc03c1e71cef6e50e8e809452f0af94d75643ac3.zip
XEEN: Don't allow dismissing characters holding Elder weapons in Swords
Diffstat (limited to 'engines/xeen/dialogs')
-rw-r--r--engines/xeen/dialogs/dialogs_dismiss.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/xeen/dialogs/dialogs_dismiss.cpp b/engines/xeen/dialogs/dialogs_dismiss.cpp
index 716f8f0035..7f9c8d972f 100644
--- a/engines/xeen/dialogs/dialogs_dismiss.cpp
+++ b/engines/xeen/dialogs/dialogs_dismiss.cpp
@@ -70,6 +70,10 @@ void Dismiss::execute() {
w.close();
ErrorScroll::show(_vm, Res.CANT_DISMISS_LAST_CHAR, WT_NONFREEZED_WAIT);
w.open();
+ } else if (party._activeParty[_buttonValue]._weapons.hasElderWeapon()) {
+ w.close();
+ ErrorScroll::show(_vm, Res.DELETE_CHAR_WITH_ELDER_WEAPON, WT_NONFREEZED_WAIT);
+ w.open();
} else {
// Remove the character from the party
party._activeParty.remove_at(_buttonValue);