Skip to content

Commit

Permalink
TITANIC: Fix display of chicken tooltips in the inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jan 15, 2017
1 parent c11f32f commit d4ff883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/titanic/pet_control/pet_inventory_glyphs.cpp
Expand Up @@ -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()
));

Expand Down

0 comments on commit d4ff883

Please sign in to comment.