diff options
author | Vladimir Menshakov | 2009-12-01 07:54:50 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-12-01 07:54:50 +0000 |
commit | 7bbcc1830b27777627cbe2f04c0b2e03cc89b696 (patch) | |
tree | cb9a5bba831965e7cd3341de6dd7697244f59482 /engines/teenagent | |
parent | df422c0894e7d7cfc0520ae91b1a1acfb582d3a1 (diff) | |
download | scummvm-rg350-7bbcc1830b27777627cbe2f04c0b2e03cc89b696.tar.gz scummvm-rg350-7bbcc1830b27777627cbe2f04c0b2e03cc89b696.tar.bz2 scummvm-rg350-7bbcc1830b27777627cbe2f04c0b2e03cc89b696.zip |
display '&' next to the object name as in original game.
svn-id: r46226
Diffstat (limited to 'engines/teenagent')
-rw-r--r-- | engines/teenagent/inventory.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/teenagent/inventory.cpp b/engines/teenagent/inventory.cpp index c41ade9b2a..47d99e3abc 100644 --- a/engines/teenagent/inventory.cpp +++ b/engines/teenagent/inventory.cpp @@ -274,11 +274,12 @@ void Inventory::Item::render(Inventory *inventory, InventoryObject *obj, Graphic } Common::String name; - if (inventory->selected_obj && inventory->selected_obj != inventory->hovered_obj) { + if (inventory->selected_obj) { name = inventory->selected_obj->name; name += " & "; } - name += obj->name; + if (inventory->selected_obj != inventory->hovered_obj) + name += obj->name; if (hovered && inventory->_engine->scene->getMessage().empty()) { int w = res->font7.render(NULL, 0, 0, name, 0xd1, true); |