From 480532c2096451cd594cdce944e2345e738039c5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 16 Jan 2017 07:02:51 -0500 Subject: TITANIC: Change chicken tooltips to use DAT strings --- engines/titanic/pet_control/pet_inventory_glyphs.cpp | 4 ++-- engines/titanic/support/strings.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/engines/titanic/pet_control/pet_inventory_glyphs.cpp b/engines/titanic/pet_control/pet_inventory_glyphs.cpp index a994df035f..e49e0c5d9d 100644 --- a/engines/titanic/pet_control/pet_inventory_glyphs.cpp +++ b/engines/titanic/pet_control/pet_inventory_glyphs.cpp @@ -154,8 +154,8 @@ void CPetInventoryGlyph::getTooltip(CTextControl *text) { CPETObjectStateMsg stateMsg(0); stateMsg.execute(_item); - text->setText(CString::format("%s %s", - stateMsg._value ? "A hot" : "A cold", + CString temperature = g_vm->_strings[stateMsg._value ? A_HOT : A_COLD]; + text->setText(CString::format("%s %s", temperature.c_str(), g_vm->_itemDescriptions[itemIndex].c_str() )); diff --git a/engines/titanic/support/strings.h b/engines/titanic/support/strings.h index 1f231c432d..d19386bbbe 100644 --- a/engines/titanic/support/strings.h +++ b/engines/titanic/support/strings.h @@ -167,6 +167,8 @@ enum StringId { PREVIOUSLY_ASSIGNED_ROOM, SAVED_CHEVRON, CURRENT_LOCATION, + A_HOT, + A_COLD, // German version only DE_SUMMER, -- cgit v1.2.3