diff options
author | Paul Gilbert | 2016-11-10 21:56:23 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-11-10 21:56:23 -0500 |
commit | 77474f90201b7500a6b0ce6456775ef5d038ae39 (patch) | |
tree | f6ef771748b69a3554b1fde2b352231bea4587b3 | |
parent | 8c52ef42b5a96a4edfdef95174cf02f739287015 (diff) | |
download | scummvm-rg350-77474f90201b7500a6b0ce6456775ef5d038ae39.tar.gz scummvm-rg350-77474f90201b7500a6b0ce6456775ef5d038ae39.tar.bz2 scummvm-rg350-77474f90201b7500a6b0ce6456775ef5d038ae39.zip |
TITANIC: Fix handling text input for LiftBot
-rw-r--r-- | engines/titanic/npcs/liftbot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/npcs/liftbot.cpp b/engines/titanic/npcs/liftbot.cpp index 105c4aafe9..bb554a104f 100644 --- a/engines/titanic/npcs/liftbot.cpp +++ b/engines/titanic/npcs/liftbot.cpp @@ -66,7 +66,7 @@ void CLiftBot::load(SimpleFile *file) { bool CLiftBot::TextInputMsg(CTextInputMsg *msg) { CPetControl *pet = getPetControl(); if (_enabled || pet->getRoomsElevatorNum() != 4) { - if (getName() != "LiftBot") { + if (getName() == "LiftBot") { CViewItem *view = findView(); processInput(msg, view); } @@ -108,7 +108,7 @@ bool CLiftBot::TrueTalkTriggerActionMsg(CTrueTalkTriggerActionMsg *msg) { } bool CLiftBot::LeaveRoomMsg(CLeaveRoomMsg *msg) { - if (getName() != "LiftBot") + if (getName() == "LiftBot") performAction(false); return true; |