TITANIC: Fix using remote to go to assigned room floor

This commit is contained in:
Paul Gilbert 2016-11-11 21:27:44 -05:00
parent 9528479724
commit ace9cfe60d

View File

@ -50,8 +50,8 @@ bool CPETLift::TransportMsg(CTransportMsg *msg) {
} else if (msg->_roomName == "BottomOfWell") {
floorNum = 39;
} else if (msg->_roomName == "PlayersRoom" && pet) {
int assignedFloor = pet->getAssignedFloorNum();
if (assignedFloor < 1 || assignedFloor > 39) {
floorNum = pet->getAssignedFloorNum();
if (floorNum < 1 || floorNum > 39) {
pet->petDisplayMessage(NO_ROOM_ASSIGNED);
floorNum = -1;
}