diff options
author | Paul Gilbert | 2017-01-15 10:43:41 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-01-15 10:43:41 -0500 |
commit | d4ff8835306bc5c15c929ee799e53093bdde7757 (patch) | |
tree | 6a53ccad4fba344b7da6997542ebb9a1b665d357 /engines/titanic/pet_control | |
parent | c11f32f4aa278d707f25427f67a5bf729c18855f (diff) | |
download | scummvm-rg350-d4ff8835306bc5c15c929ee799e53093bdde7757.tar.gz scummvm-rg350-d4ff8835306bc5c15c929ee799e53093bdde7757.tar.bz2 scummvm-rg350-d4ff8835306bc5c15c929ee799e53093bdde7757.zip |
TITANIC: Fix display of chicken tooltips in the inventory
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r-- | engines/titanic/pet_control/pet_inventory_glyphs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_inventory_glyphs.cpp b/engines/titanic/pet_control/pet_inventory_glyphs.cpp index 9d745d8806..734b260b0f 100644 --- a/engines/titanic/pet_control/pet_inventory_glyphs.cpp +++ b/engines/titanic/pet_control/pet_inventory_glyphs.cpp @@ -150,11 +150,12 @@ void CPetInventoryGlyph::getTooltip(CTextControl *text) { if (_field34 && _item) { int itemIndex = populateItem(_item, 0); if (itemIndex >= 14 && itemIndex <= 18) { + // Variations of the chicken CPETObjectStateMsg stateMsg(0); stateMsg.execute(_item); text->setText(CString::format("%s %s", - stateMsg._value ? "A hot " : "A cold ", + stateMsg._value ? "A hot" : "A cold", g_vm->_itemDescriptions[itemIndex].c_str() )); |