XEEN: Remove debug code and unneeded variables

This commit is contained in:
Paul Gilbert 2018-02-24 21:34:54 -05:00
parent da65468c47
commit 8ae340d847
3 changed files with 1 additions and 7 deletions

View File

@ -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;

View File

@ -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];

View File

@ -579,9 +579,6 @@ void Interface::perform() {
Quests::show(_vm);
break;
case Common::KEYCODE_x:
// ****DEBUG***
PartyDialog::show(_vm); //***DEBUG****
default:
break;
}