Skip to content

Commit

Permalink
ADL: Use columns when printing verb/noun lists
Browse files Browse the repository at this point in the history
  • Loading branch information
waltervn committed Jun 6, 2016
1 parent 3b7813d commit 26b8e8d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions engines/adl/console.cpp
Expand Up @@ -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

0 comments on commit 26b8e8d

Please sign in to comment.