TITANIC: Fix leaving lift at SGT floor

This commit is contained in:
Paul Gilbert 2016-11-11 22:05:24 -05:00
parent ace9cfe60d
commit 6ab6fb8b19
2 changed files with 4 additions and 4 deletions

View File

@ -171,8 +171,8 @@ bool CPETPosition::EnterViewMsg(CEnterViewMsg *msg) {
bool CPETPosition::LeaveViewMsg(CLeaveViewMsg *msg) {
CPetControl *pet = getPetControl();
CString oldView = msg->_oldView->getName();
CString newView = msg->_newView->getName();
CString oldView = msg->_oldView->getFullViewName();
CString newView = msg->_newView->getFullViewName();
if (pet && newView == "Lift.Node 1.N") {
int elevatorNum = pet->getRoomsElevatorNum();

View File

@ -46,8 +46,8 @@ void CExitLift::load(SimpleFile *file) {
bool CExitLift::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
CPetControl *pet = getPetControl();
int floorNum = pet->getRoomsFloorNum();//ebx
int elevNum = pet->getRoomsElevatorNum(); //eax
int floorNum = pet->getRoomsFloorNum();
int elevNum = pet->getRoomsElevatorNum();
if (floorNum == 39) {
switch (elevNum) {