diff options
-rw-r--r-- | engines/titanic/star_control/star_camera.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/titanic/star_control/star_camera.cpp b/engines/titanic/star_control/star_camera.cpp index a99d70276f..ce083dee78 100644 --- a/engines/titanic/star_control/star_camera.cpp +++ b/engines/titanic/star_control/star_camera.cpp @@ -26,7 +26,6 @@ #include "titanic/star_control/fmatrix.h" #include "titanic/star_control/fpoint.h" #include "titanic/star_control/marked_camera_mover.h" -//#include "titanic/star_control/matrix_inv.h" #include "titanic/star_control/unmarked_camera_mover.h" #include "titanic/star_control/error_code.h" #include "titanic/support/simple_file.h" @@ -616,7 +615,9 @@ bool CStarCamera::lockMarker3(CViewport *viewport, const FVector &thirdStarPosit FVector newPos = viewport->_position; FVector oldPos = _viewport._position; - _mover->transitionBetweenPosOrients(oldPos, newPos, oldOr, newOr); + // WORKAROUND: set old position to new position (1st argument), this prevents + // locking issues when locking the 3rd star. Fixes #9961. + _mover->transitionBetweenPosOrients(newPos, newPos, oldOr, newOr); CStarVector *sv = new CStarVector(this, thirdStarPosition); _mover->setVector(sv); |