From 39f882d9f3bfcf304806968f97cfb43e5ce95481 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 28 Jul 2016 23:25:38 -0400 Subject: TITANIC: Added LiftbotScript updateState --- engines/titanic/true_talk/liftbot_script.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/engines/titanic/true_talk/liftbot_script.cpp b/engines/titanic/true_talk/liftbot_script.cpp index 2308ea1beb..66e2042ee3 100644 --- a/engines/titanic/true_talk/liftbot_script.cpp +++ b/engines/titanic/true_talk/liftbot_script.cpp @@ -212,8 +212,15 @@ int LiftbotScript::handleQuote(TTroomScript *roomScript, TTsentence *sentence, } int LiftbotScript::updateState(uint oldId, uint newId, int index) { - warning("TODO"); - return 0; + for (uint idx = 0; idx < _states.size(); ++idx) { + TTupdateState2 &us = _states[idx]; + if (us._src == newId) { + setState(us._dest); + break; + } + } + + return newId; } int LiftbotScript::proc22(int id) const { -- cgit v1.2.3