TITANIC: Fix handling text input for LiftBot

This commit is contained in:
Paul Gilbert 2016-11-10 21:56:23 -05:00
parent 8c52ef42b5
commit 77474f9020

View File

@ -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;