mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
ADL: Fix item description in debug output
This commit is contained in:
parent
90d2dd3b40
commit
70cd57892a
@ -1263,16 +1263,17 @@ Common::String AdlEngine::toAscii(const Common::String &str) {
|
||||
}
|
||||
|
||||
Common::String AdlEngine::itemStr(uint i) const {
|
||||
byte desc = getItem(i).description;
|
||||
byte noun = getItem(i).noun;
|
||||
const Item &item(getItem(i));
|
||||
|
||||
Common::String name = Common::String::format("%d", i);
|
||||
if (noun > 0) {
|
||||
if (item.noun > 0) {
|
||||
name += "/";
|
||||
name += _priNouns[noun - 1];
|
||||
name += _priNouns[item.noun - 1];
|
||||
}
|
||||
if (desc > 0) {
|
||||
Common::String desc = getItemDescription(item);
|
||||
if (!desc.empty()) {
|
||||
name += "/";
|
||||
name += toAscii(loadMessage(desc));
|
||||
name += toAscii(desc);
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user