[Scummvm-git-logs] scummvm master -> 589794f082449c7ad05e7ab94cbea5357b394811
dreammaster
dreammaster at scummvm.org
Sat Sep 17 05:41:26 CEST 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
589794f082 XEEN: Fix some compiler warnings
Commit: 589794f082449c7ad05e7ab94cbea5357b394811
https://github.com/scummvm/scummvm/commit/589794f082449c7ad05e7ab94cbea5357b394811
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-09-16T23:41:19-04:00
Commit Message:
XEEN: Fix some compiler warnings
Changed paths:
engines/xeen/dialogs_char_info.cpp
engines/xeen/dialogs_items.cpp
engines/xeen/music.cpp
diff --git a/engines/xeen/dialogs_char_info.cpp b/engines/xeen/dialogs_char_info.cpp
index 0494c22..5a4e3cc 100644
--- a/engines/xeen/dialogs_char_info.cpp
+++ b/engines/xeen/dialogs_char_info.cpp
@@ -474,14 +474,14 @@ bool CharacterInfo::expandStat(int attrib, const Character &c) {
case 16:
// Gold
- msg = Common::String::format(IN_PARTY_IN_BANK, STAT_NAMES[attrib],
+ msg = Common::String::format(IN_PARTY_IN_BANK, CONSUMABLE_NAMES[0],
party._gold, party._bankGold);
bounds.setHeight(43);
break;
case 17:
// Gems
- msg = Common::String::format(IN_PARTY_IN_BANK, STAT_NAMES[attrib],
+ msg = Common::String::format(IN_PARTY_IN_BANK, CONSUMABLE_NAMES[1],
party._gems, party._bankGems);
bounds.setHeight(43);
break;
@@ -489,7 +489,7 @@ bool CharacterInfo::expandStat(int attrib, const Character &c) {
case 18: {
// Food
int food = (party._food / party._activeParty.size()) / 3;
- msg = Common::String::format(FOOD_TEXT, STAT_NAMES[attrib],
+ msg = Common::String::format(FOOD_TEXT, CONSUMABLE_NAMES[2],
party._food, food, food != 1 ? "s" : "");
break;
}
@@ -528,7 +528,7 @@ bool CharacterInfo::expandStat(int attrib, const Character &c) {
lines[19] = Common::String::format(HEROISM, party._heroism);
msg = Common::String::format("\x2\x3""c%s\x3l%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\x1",
- STAT_NAMES[attrib], lines[0].c_str(), lines[1].c_str(),
+ CONSUMABLE_NAMES[3], lines[0].c_str(), lines[1].c_str(),
lines[2].c_str(), lines[3].c_str(), lines[4].c_str(),
lines[5].c_str(), lines[6].c_str(), lines[7].c_str(),
lines[8].c_str(), lines[9].c_str(), lines[10].c_str(),
diff --git a/engines/xeen/dialogs_items.cpp b/engines/xeen/dialogs_items.cpp
index ed9f7f5..23d7071 100644
--- a/engines/xeen/dialogs_items.cpp
+++ b/engines/xeen/dialogs_items.cpp
@@ -718,7 +718,7 @@ int ItemsDialog::calcItemCost(Character *c, int itemIndex, ItemsMode mode,
if (i._material < 37)
amount2 = ELEMENTAL_DAMAGE[i._material] * 100;
else if (i._material > 58)
- amount3 = METAL_BASE_MULTIPLIERS[i._material] * 100;
+ amount3 = METAL_BASE_MULTIPLIERS[i._material - 37] * 100;
switch (mode) {
case ITEMMODE_BLACKSMITH:
diff --git a/engines/xeen/music.cpp b/engines/xeen/music.cpp
index c2e8570..3611824 100644
--- a/engines/xeen/music.cpp
+++ b/engines/xeen/music.cpp
@@ -123,9 +123,8 @@ bool MusicDriver::musSkipWord(const byte *&srcP, byte param) {
return false;
}
-
bool MusicDriver::cmdFreezeFrequency(const byte *&srcP, byte param) {
- debugC(3, kDebugSound, "cmdFreezeFrequency %d");
+ debugC(3, kDebugSound, "cmdFreezeFrequency %d", param);
_channels[param]._changeFrequency = false;
return false;
}
More information about the Scummvm-git-logs
mailing list