Skip to content
Permalink
Browse files

XEEN: Fix Missing Default Switch Cases

These are flagged by GCC if -Wswitch-default is enabled.
  • Loading branch information...
digitall committed Nov 9, 2019
1 parent b2452d6 commit 5447a13013a91f9b0f4ddf26c7a56cdec71eb59b
@@ -1551,6 +1551,8 @@ void Combat::attack2(int damage, RangeType rangeType) {
}
}
break;
default:
break;
}
}
}
@@ -208,6 +208,9 @@ void CharacterInfo::execute(int charIndex) {

case Common::KEYCODE_ESCAPE:
goto exit;

default:
break;
}
} while (!_vm->shouldExit());
exit:
@@ -482,6 +482,9 @@ Character *ItemsDialog::execute(Character *c, ItemsMode mode) {
category = CATEGORY_WEAPON;
redrawFlag = REDRAW_FULL;
break;

default:
break;
}
}

@@ -204,6 +204,9 @@ void Quests::execute() {
));
break;
}

default:
break;
}

windows[30].writeString("\v000\t000");
@@ -238,6 +238,9 @@ Character *SpellsDialog::execute(ButtonContainer *priorDialog, Character *c, int
if (topIndex < ((int)_spells.size() - 10))
++topIndex;
break;

default:
break;
}
} while (!_vm->shouldExit() && _buttonValue != Common::KEYCODE_ESCAPE);

@@ -620,6 +623,9 @@ int SpellOnWho::execute(int spellId) {
result = _buttonValue;
}
break;

default:
break;
}
}

@@ -828,6 +834,9 @@ bool LloydsBeacon::execute() {

_buttonValue = Common::KEYCODE_ESCAPE;
break;

default:
break;
}
} while (_buttonValue != Common::KEYCODE_ESCAPE);

@@ -1669,6 +1669,9 @@ void Interface::doCombat() {
combat.moveMonsters();
party._stepped = true;
break;

default:
break;
}

// Handling for if the combat turn is complete
@@ -1958,6 +1958,9 @@ int DwarfCutscene::show() {
case 2:
sound.playSound("dwarf12.voc");
break;

default:
break;
}

events.updateGameCounter();
@@ -2158,6 +2161,8 @@ int SphinxCutscene::show() {
case 2:
sound.playSound("sphinx12.voc");
break;
default:
break;
}

do {
@@ -791,6 +791,8 @@ bool Scripts::cmdTakeOrGive(ParamsIterator &params) {
// Break out of character loop
idx = party._activeParty.size();
break;
default:
break;
}
break;
}

0 comments on commit 5447a13

Please sign in to comment.
You can’t perform that action at this time.