aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-21 14:41:57 -0500
committerPaul Gilbert2015-02-21 14:41:57 -0500
commitc99a901f65dbb61ad961d8c70be41fd6620ca840 (patch)
treeee3b9d4557f3c0747e9f55a5a3526bf2a7465df9
parentf49b1f9b4377af9693c5b1c1fdea162425c0c2b6 (diff)
downloadscummvm-rg350-c99a901f65dbb61ad961d8c70be41fd6620ca840.tar.gz
scummvm-rg350-c99a901f65dbb61ad961d8c70be41fd6620ca840.tar.bz2
scummvm-rg350-c99a901f65dbb61ad961d8c70be41fd6620ca840.zip
XEEN: More code for dismiss dialog
-rw-r--r--engines/xeen/dialogs_dismiss.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/xeen/dialogs_dismiss.cpp b/engines/xeen/dialogs_dismiss.cpp
index 1317d84447..9323b46429 100644
--- a/engines/xeen/dialogs_dismiss.cpp
+++ b/engines/xeen/dialogs_dismiss.cpp
@@ -45,7 +45,8 @@ void Dismiss::execute() {
_iconSprites.draw(w, 0, Common::Point(225, 120));
w.update();
- while (!_vm->shouldQuit()) {
+ bool breakFlag = false;
+ while (!_vm->shouldQuit() && !breakFlag) {
do {
events.updateGameCounter();
intf.draw3d(false);
@@ -70,17 +71,14 @@ void Dismiss::execute() {
ErrorScroll::show(_vm, CANT_DISMISS_LAST_CHAR, WT_NONFREEZED_WAIT);
w.open();
} else {
- Character tempChar = party._activeParty[_buttonValue];
- int charIndex = party._activeParty[_buttonValue]._rosterId;
-
-// party.sortParty();
-
- // TODO
+ // Remove the character from the party
+ party._activeParty.remove_at(_buttonValue);
+ breakFlag = true;
}
break;
}
} else if (_buttonValue == Common::KEYCODE_ESCAPE) {
-
+ breakFlag = true;
}
}
}