From bd648032697782b26d2638633392698f416bc606 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 30 May 2021 14:14:07 +0300 Subject: [PATCH] TRECISION: Fix regression with closeup exits --- engines/trecision/defines.h | 6 +++--- engines/trecision/logic.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/engines/trecision/defines.h b/engines/trecision/defines.h index d2c8a401ab7..047ef68e746 100644 --- a/engines/trecision/defines.h +++ b/engines/trecision/defines.h @@ -669,7 +669,7 @@ enum RoomId { #define oSCRIVANIA2B 419 #define oPORTALAMPADE2B 420 #define omLAMPADINA2B 421 -#define oEXIT2BL 422 +#define oEXIT2BL 422 // Exit from Egyptology book #define oUEPOIS 423 #define oHATOR 424 #define oNUT 425 @@ -973,7 +973,7 @@ enum RoomId { #define oSCATOLONE36 723 #define omCARTACCE36 724 #define omSCATOLONEA36 725 -#define oEXIT36F 726 +#define oEXIT36F 726 // Exit from security system sequence #define oSIMON37 727 #define oSPORTELLOA37 728 #define oSPORTELLOI37 729 @@ -1436,7 +1436,7 @@ enum RoomId { #define omWINDOW5A 1200 #define oPIANTE5A 1201 #define oEXIT58T 1202 -#define oEXIT41D 1203 +#define oEXIT41D 1203 // Exit from positioner #define oPULSANTECD 1205 #define oPULSANTE1AD 1247 #define oPULSANTE33AD 1279 diff --git a/engines/trecision/logic.cpp b/engines/trecision/logic.cpp index 2f496d1f367..92475b24708 100644 --- a/engines/trecision/logic.cpp +++ b/engines/trecision/logic.cpp @@ -3505,16 +3505,16 @@ bool LogicManager::operateInventory() { break; case kItemEgyptologyBook: - _vm->changeRoom(kRoom2BL); _vm->_obj[oEXIT2BL]._goRoom = _vm->_curRoom; + _vm->changeRoom(kRoom2BL); _vm->_actor->actorStop(); _vm->_pathFind->nextStep(); printSentence = false; break; case kItemSecuritySystemSequence: - _vm->changeRoom(kRoom36F); _vm->_obj[oEXIT36F]._goRoom = _vm->_curRoom; + _vm->changeRoom(kRoom36F); _vm->_actor->actorStop(); _vm->_pathFind->nextStep(); printSentence = false; @@ -3523,8 +3523,8 @@ bool LogicManager::operateInventory() { case kItemPositioner: for (int a = oROOM41; a <= oROOM45B; ++a) _vm->setObjectVisible(a, false); - _vm->changeRoom(kRoom41D); _vm->_obj[oEXIT41D]._goRoom = _vm->_curRoom; + _vm->changeRoom(kRoom41D); _vm->_inventoryObj[kItemPositioner].setFlagExtra(false); _vm->_actor->actorStop(); _vm->_pathFind->nextStep(); @@ -3845,8 +3845,8 @@ void LogicManager::doSystemChangeRoom(uint16 room) { _vm->_curRoom = room; _vm->_scheduler->resetQueues(); - _vm->closeInventoryImmediately(); _vm->clearUseWith(); + _vm->closeInventoryImmediately(); _vm->_flagCharacterExists = true; _vm->_flagShowCharacter = true;