aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-28 16:14:38 -0400
committerPaul Gilbert2016-08-28 16:14:38 -0400
commitdffa696b7beea02782579a004862f4aa86e8f3e6 (patch)
treeb4884bfe9b41232fa2b42a6e66d04332e536e15a /engines
parentef6253fb19822b9a2e9a1ba00418f1d33afff65f (diff)
downloadscummvm-rg350-dffa696b7beea02782579a004862f4aa86e8f3e6.tar.gz
scummvm-rg350-dffa696b7beea02782579a004862f4aa86e8f3e6.tar.bz2
scummvm-rg350-dffa696b7beea02782579a004862f4aa86e8f3e6.zip
XEEN: gcc compilation fixes
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/character.cpp6
-rw-r--r--engines/xeen/combat.cpp14
2 files changed, 15 insertions, 5 deletions
diff --git a/engines/xeen/character.cpp b/engines/xeen/character.cpp
index bb7877c69a..51f288c595 100644
--- a/engines/xeen/character.cpp
+++ b/engines/xeen/character.cpp
@@ -303,6 +303,7 @@ Common::String WeaponItems::getFullDescription(int itemIndex, int displayNum) {
!i._bonusFlags ? res._maeNames[i._material].c_str() : "",
(i._bonusFlags & ITEMFLAG_BROKEN) ? ITEM_BROKEN : "",
(i._bonusFlags & ITEMFLAG_CURSED) ? ITEM_CURSED : "",
+ displayNum,
WEAPON_NAMES[i._id],
!i._bonusFlags ? "" : BONUS_NAMES[i._bonusFlags & ITEMFLAG_BONUS_MASK],
(i._bonusFlags & (ITEMFLAG_BROKEN | ITEMFLAG_CURSED)) ||
@@ -593,6 +594,7 @@ Common::String AccessoryItems::getFullDescription(int itemIndex, int displayNum)
!i._bonusFlags ? "" : res._maeNames[i._material].c_str(),
(i._bonusFlags & ITEMFLAG_BROKEN) ? ITEM_BROKEN : "",
(i._bonusFlags & ITEMFLAG_CURSED) ? ITEM_CURSED : "",
+ displayNum,
ARMOR_NAMES[i._id],
(i._bonusFlags & (ITEMFLAG_BROKEN | ITEMFLAG_CURSED)) ||
!i._bonusFlags ? "\b " : ""
@@ -642,6 +644,7 @@ Common::String MiscItems::getFullDescription(int itemIndex, int displayNum) {
!i._bonusFlags ? "" : res._maeNames[i._material].c_str(),
(i._bonusFlags & ITEMFLAG_BROKEN) ? ITEM_BROKEN : "",
(i._bonusFlags & ITEMFLAG_CURSED) ? ITEM_CURSED : "",
+ displayNum,
ARMOR_NAMES[i._id],
(i._bonusFlags & (ITEMFLAG_BROKEN | ITEMFLAG_CURSED)) ||
!i._id ? "\b " : ""
@@ -1722,6 +1725,9 @@ int Character::makeItem(int p1, int itemIndex, int p3) {
case CATEGORY_MISC:
v8 = 4;
break;
+
+ default:
+ break;
}
if (p1 != 1 || category == CATEGORY_MISC) {
diff --git a/engines/xeen/combat.cpp b/engines/xeen/combat.cpp
index 13efe912de..c8cece7b10 100644
--- a/engines/xeen/combat.cpp
+++ b/engines/xeen/combat.cpp
@@ -496,11 +496,12 @@ void Combat::moveMonsters() {
if (monsterCanMove(pt, MONSTER_GRID_BITMASK[MONSTER_GRID_BITINDEX2[arrIndex]],
arrIndex >= 21 && arrIndex <= 27 ? MONSTER_GRID3[arrIndex] : 0,
arrIndex >= 21 && arrIndex <= 27 ? 0 : MONSTER_GRID3[arrIndex],
- idx))
- if (arrIndex >= 21 && arrIndex <= 27) {
- moveMonster(idx, Common::Point(MONSTER_GRID3[arrIndex], 0));
- } else {
- moveMonster(idx, Common::Point(0, MONSTER_GRID3[arrIndex]));
+ idx)) {
+ if (arrIndex >= 21 && arrIndex <= 27) {
+ moveMonster(idx, Common::Point(MONSTER_GRID3[arrIndex], 0));
+ } else {
+ moveMonster(idx, Common::Point(0, MONSTER_GRID3[arrIndex]));
+ }
}
}
break;
@@ -520,6 +521,9 @@ void Combat::moveMonsters() {
MONSTER_GRID_X[arrIndex], MONSTER_GRID_Y[arrIndex], idx)) {
moveMonster(idx, Common::Point(MONSTER_GRID_X[arrIndex], MONSTER_GRID_Y[arrIndex]));
}
+
+ default:
+ break;
}
}
}