aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-02-24 21:34:54 -0500
committerPaul Gilbert2018-02-24 21:34:54 -0500
commit8ae340d8479966b53bf2151627c05792362807f5 (patch)
tree58e731052e041cfded371719ae774e0908f0033f /engines
parentda65468c474258eab62ca82191a85d9a4274a23f (diff)
downloadscummvm-rg350-8ae340d8479966b53bf2151627c05792362807f5.tar.gz
scummvm-rg350-8ae340d8479966b53bf2151627c05792362807f5.tar.bz2
scummvm-rg350-8ae340d8479966b53bf2151627c05792362807f5.zip
XEEN: Remove debug code and unneeded variables
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/combat.cpp3
-rw-r--r--engines/xeen/dialogs_difficulty.cpp2
-rw-r--r--engines/xeen/interface.cpp3
3 files changed, 1 insertions, 7 deletions
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index 32984c1527..94d31bd3b7 100644
--- a/engines/xeen/combat.cpp
+++ b/engines/xeen/combat.cpp
@@ -235,8 +235,7 @@ void Combat::giveCharDamage(int damage, DamageType attackType, int charIndex) {
if (damage < 0)
damage = 0;
- // TODO: This seems weird.. maybe I've got attack types wrong..
- // why should attack type 7 (DT_SLEEP) set the dead condition?
+ // Attacked characters which are asleep are killed
if (attackType == DT_SLEEP) {
damage = c._currentHp;
c._conditions[DEAD] = 1;
diff --git a/engines/xeen/dialogs_difficulty.cpp b/engines/xeen/dialogs_difficulty.cpp
index e7c7445ebb..8d542dc165 100644
--- a/engines/xeen/dialogs_difficulty.cpp
+++ b/engines/xeen/dialogs_difficulty.cpp
@@ -40,8 +40,6 @@ DifficultyDialog::DifficultyDialog(XeenEngine *vm) : ButtonContainer(vm) {
int DifficultyDialog::execute() {
EventsManager &events = *_vm->_events;
- Interface &intf = *_vm->_interface;
- Party &party = *_vm->_party;
Windows &windows = *_vm->_windows;
Window &w = windows[6];
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index dff6dc7372..fa06fa7afc 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -579,9 +579,6 @@ void Interface::perform() {
Quests::show(_vm);
break;
- case Common::KEYCODE_x:
- // ****DEBUG***
- PartyDialog::show(_vm); //***DEBUG****
default:
break;
}