aboutsummaryrefslogtreecommitdiff
path: root/engines/adl
diff options
context:
space:
mode:
authorWalter van Niftrik2016-04-01 12:38:37 +0200
committerWalter van Niftrik2016-06-06 20:35:49 +0200
commit26b8e8d66a0039281ec3b8fe8d2f29efed37fda2 (patch)
treeeb12663d7f79a043c16e522c88e7e24805829f85 /engines/adl
parent3b7813d971feb8ac8292ffb7ddf014ead6f5bf36 (diff)
downloadscummvm-rg350-26b8e8d66a0039281ec3b8fe8d2f29efed37fda2.tar.gz
scummvm-rg350-26b8e8d66a0039281ec3b8fe8d2f29efed37fda2.tar.bz2
scummvm-rg350-26b8e8d66a0039281ec3b8fe8d2f29efed37fda2.zip
ADL: Use columns when printing verb/noun lists
Diffstat (limited to 'engines/adl')
-rw-r--r--engines/adl/console.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/adl/console.cpp b/engines/adl/console.cpp
index 003f6893fe..9653466c2f 100644
--- a/engines/adl/console.cpp
+++ b/engines/adl/console.cpp
@@ -134,13 +134,11 @@ void Console::printWordMap(const WordMap &wordMap) {
WordMap::const_iterator verb;
for (verb = wordMap.begin(); verb != wordMap.end(); ++verb)
- words.push_back(verb->_key);
+ words.push_back(Common::String::format("%s: %3d", toAscii(verb->_key).c_str(), wordMap[verb->_key]));
Common::sort(words.begin(), words.end());
- Common::StringArray::const_iterator word;
- for (word = words.begin(); word != words.end(); ++word)
- debugPrintf("%s: %d\n", toAscii(*word).c_str(), wordMap[*word]);
+ debugPrintColumns(words);
}
} // End of namespace Adl