From 988e47d2d0ec0b803dbd20b7018b792952ac9b3a Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 15 Jan 2017 16:21:46 -0500 Subject: TITANIC: Show correct inventory glyphs & tooltip for multi-state items --- engines/titanic/pet_control/pet_inventory_glyphs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/titanic/pet_control/pet_inventory_glyphs.h') diff --git a/engines/titanic/pet_control/pet_inventory_glyphs.h b/engines/titanic/pet_control/pet_inventory_glyphs.h index e843cf53f9..cf1cfb392b 100644 --- a/engines/titanic/pet_control/pet_inventory_glyphs.h +++ b/engines/titanic/pet_control/pet_inventory_glyphs.h @@ -36,7 +36,12 @@ private: */ int populateItem(CGameObject *item, bool isLoading); - int subMode(CGameObject *item, bool isLoading); + /** + * For items which can have multiple different states, such as the + * beer glass or Maitre D arms, returns the correct item index to use + * for getting the inventory item glyph and description + */ + int getItemIndex(CGameObject *item, bool isLoading); /** * Start any movie for the background -- cgit v1.2.3