aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-16 07:02:51 -0500
committerPaul Gilbert2017-01-16 07:03:50 -0500
commit480532c2096451cd594cdce944e2345e738039c5 (patch)
tree835c625eddb12a8c7882455cd3fdc410a4a8a02e
parent4a14a56a5ca8ed75981d6cbacf547d0b806e2d8e (diff)
downloadscummvm-rg350-480532c2096451cd594cdce944e2345e738039c5.tar.gz
scummvm-rg350-480532c2096451cd594cdce944e2345e738039c5.tar.bz2
scummvm-rg350-480532c2096451cd594cdce944e2345e738039c5.zip
TITANIC: Change chicken tooltips to use DAT strings
-rw-r--r--engines/titanic/pet_control/pet_inventory_glyphs.cpp4
-rw-r--r--engines/titanic/support/strings.h2
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,