From 944cabd9cbb9dd61e2ff276dd230b85dc028370a Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 1 Aug 2016 21:23:50 -0400 Subject: [PATCH] TITANIC: Fix compiler warnings --- engines/titanic/true_talk/liftbot_script.cpp | 3 ++- engines/titanic/true_talk/succubus_script.cpp | 2 +- engines/titanic/true_talk/tt_word.h | 11 +---------- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/engines/titanic/true_talk/liftbot_script.cpp b/engines/titanic/true_talk/liftbot_script.cpp index b37288d7bc0..ab995b71b9a 100644 --- a/engines/titanic/true_talk/liftbot_script.cpp +++ b/engines/titanic/true_talk/liftbot_script.cpp @@ -591,7 +591,8 @@ int LiftbotScript::sentence1(const TTsentence *sentence) { else classSet = false; - uint newId = 0, diff = 1; + uint newId = 0; + int diff = 1; if (sentence->localWord("promenade")) { newId = 210718; } else if (sentence->localWord("bar")) { diff --git a/engines/titanic/true_talk/succubus_script.cpp b/engines/titanic/true_talk/succubus_script.cpp index c0c9c98af15..db537c6470e 100644 --- a/engines/titanic/true_talk/succubus_script.cpp +++ b/engines/titanic/true_talk/succubus_script.cpp @@ -198,7 +198,7 @@ int SuccUBusScript::updateState(uint oldId, uint newId, int index) { return 230125; } - static const int UPDATE_STATES[][2] = { + static const uint UPDATE_STATES[][2] = { { 230078, 1 }, { 230106, 2 }, { 230112, 3 }, { 230115, 4 }, { 230127, 5 }, { 230140, 6 }, { 230156, 7 }, { 230157, 8 }, { 230159, 9 }, { 230160, 10 }, { 230161, 11 }, { 230072, 12 } diff --git a/engines/titanic/true_talk/tt_word.h b/engines/titanic/true_talk/tt_word.h index 428a3e32297..7fd61c38ac7 100644 --- a/engines/titanic/true_talk/tt_word.h +++ b/engines/titanic/true_talk/tt_word.h @@ -35,16 +35,7 @@ namespace Titanic { enum WordClass { WC_UNKNOWN = 0, WC_ACTION = 1, WC_THING = 2, WC_ABSTRACT = 3, WC_ARTICLE = 4, WC_CONJUNCTION = 5, WC_PRONOUN = 6, - WC_PREPOSITION = 7, WC_ADJECTIVE = 8, WC_ADVERB = 9, - // TODO: These may not actually be part of this enum - WC_UNK_ACTION = 10, - WC_ATRANS = 11, // transfer possession, eg: give/take - WC_PTRANS = 12, // physical transfer, eg: go - WC_PROPEL = 13, // act of applying a force, eg: hit - WC_MTRANS = 14, // mental transfer, eg: see, hear - WC_BUILD = 15, WC_ATTEND = 16, WC_SPEAK = 17, WC_GRASP = 18, - WC_MOVE = 19, WC_INGEST = 20, WC_EXPEL = 21, WC_STRANS = 22, - WC_ISA = 23 + WC_PREPOSITION = 7, WC_ADJECTIVE = 8, WC_ADVERB = 9 }; class TTword {