aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-15 20:42:44 +0100
committerEugene Sandulenko2016-02-14 17:12:46 +0100
commitc3824f40bac45571032652be2b18a34d9633530a (patch)
tree8c7b390746b7c63c9d8d7ab34cf6bf2dda5790c6
parent84b382db003492effead11f21e26aa421ea135fe (diff)
downloadscummvm-rg350-c3824f40bac45571032652be2b18a34d9633530a.tar.gz
scummvm-rg350-c3824f40bac45571032652be2b18a34d9633530a.tar.bz2
scummvm-rg350-c3824f40bac45571032652be2b18a34d9633530a.zip
WAGE: Hide debug output
-rw-r--r--engines/wage/world.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index af68e6ab32..85c72bb1ec 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -305,28 +305,28 @@ Common::StringArray *World::readMenu(Common::SeekableReadStream *res) {
String menuName = readPascalString(res);
String menuItem = readPascalString(res);
int menuItemNumber = 1;
- Common::String sb;
+ Common::String menu;
byte itemData[4];
while (menuItem.size() > 0) {
- if (sb.size() > 0) {
- sb += ';';
+ if (menu.size() > 0) {
+ menu += ';';
}
if ((enableFlags & (1 << menuItemNumber)) == 0) {
- sb += '(';
+ menu += '(';
}
- sb += menuItem;
+ menu += menuItem;
res->read(itemData, 4);
static const char styles[] = {'B', 'I', 'U', 'O', 'S', 'C', 'E', 0};
for (int i = 0; styles[i] != 0; i++) {
if ((itemData[3] & (1 << i)) != 0) {
- sb += '<';
- sb += styles[i];
+ menu += '<';
+ menu += styles[i];
}
}
if (itemData[1] != 0) {
- sb += '/';
- sb += (char)itemData[1];
+ menu += '/';
+ menu += (char)itemData[1];
}
menuItem = readPascalString(res);
menuItemNumber++;
@@ -334,10 +334,11 @@ Common::StringArray *World::readMenu(Common::SeekableReadStream *res) {
Common::StringArray *result = new Common::StringArray;
result->push_back(menuName);
- result->push_back(sb);
+ result->push_back(menu);
+
+ debug(4, "menuName: %s", menuName.c_str());
+ debug(4, "menu: %s", menu.c_str());
- warning("menuName: %s", menuName.c_str());
- warning("sb: %s", sb.c_str());
return result;
}