diff options
Diffstat (limited to 'engines/titanic/star_control/star_camera.cpp')
-rw-r--r-- | engines/titanic/star_control/star_camera.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/titanic/star_control/star_camera.cpp b/engines/titanic/star_control/star_camera.cpp index 38ce492ce5..88c943e685 100644 --- a/engines/titanic/star_control/star_camera.cpp +++ b/engines/titanic/star_control/star_camera.cpp @@ -518,15 +518,15 @@ bool CStarCamera::lockMarker2(CViewport *viewport, const FVector &secondStarPosi _isInLockingProcess = true; FVector firstStarPosition = _lockedStarsPos._row1; - DAffine m2(0, firstStarPosition); // Identity matrix and col4 as the 1st stars position + //DAffine m2(0, firstStarPosition); // Identity matrix and col4 as the 1st stars position FPose m3(0, firstStarPosition); // Identity matrix and row4 as the 1st stars position FVector starDelta = secondStarPosition - firstStarPosition; - DAffine m1 = starDelta.formRotXY(); + //DAffine m1 = starDelta.formRotXY(); FPose m10 = starDelta.formRotXY2(); FPose m11; fposeProd(m10,m3,m11); - m1 = m1.compose(m2); - m2 = m1.inverseTransform(); + //m1 = m1.compose(m2); + //m2 = m1.inverseTransform(); float A[16]={m11._row1._x,m11._row1._y,m11._row1._z, 0.0, m11._row2._x,m11._row2._y,m11._row2._z, 0.0, @@ -543,11 +543,11 @@ bool CStarCamera::lockMarker2(CViewport *viewport, const FVector &secondStarPosi m10._vector._z=B[14]; FVector oldPos = _viewport._position; - DAffine m5; - m5._col1 = viewport->_position; - m5._col2 = FVector(0.0, 0.0, 0.0); - m5._col3 = FVector(0.0, 0.0, 0.0); - m5._col4 = FVector(0.0, 0.0, 0.0); + //DAffine m5; + //m5._col1 = viewport->_position; + //m5._col2 = FVector(0.0, 0.0, 0.0); + //m5._col3 = FVector(0.0, 0.0, 0.0); + //m5._col4 = FVector(0.0, 0.0, 0.0); FPose m4; m4._row1 = viewport->_position; @@ -583,7 +583,7 @@ bool CStarCamera::lockMarker2(CViewport *viewport, const FVector &secondStarPosi m4._vector = tempV3; - FVector viewPosition = oldPos.MatProdColVect(m2); + //FVector viewPosition = oldPos.MatProdColVect(m2); FVector viewPosition2 = oldPos.MatProdRowVect(m10); //m4 = m4.compose2(m2); //fposeProd(m4,m10,m3); |