diff options
author | Paul Gilbert | 2017-06-04 14:22:02 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-06-04 14:22:02 -0400 |
commit | ca0a6d3d7ea2dc4c53ce550282defc01acdad954 (patch) | |
tree | 67ab7967e44dcde0a1d5fd31b7f23fec747cb07b /engines/titanic/star_control | |
parent | b60f0ee7d3fd134b54bc1a0d423712180a7e4e83 (diff) | |
download | scummvm-rg350-ca0a6d3d7ea2dc4c53ce550282defc01acdad954.tar.gz scummvm-rg350-ca0a6d3d7ea2dc4c53ce550282defc01acdad954.tar.bz2 scummvm-rg350-ca0a6d3d7ea2dc4c53ce550282defc01acdad954.zip |
TITANIC: Some fixes for marker 1 rotation code
Diffstat (limited to 'engines/titanic/star_control')
-rw-r--r-- | engines/titanic/star_control/star_camera.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/engines/titanic/star_control/star_camera.cpp b/engines/titanic/star_control/star_camera.cpp index 628bfcd402..f3442763e1 100644 --- a/engines/titanic/star_control/star_camera.cpp +++ b/engines/titanic/star_control/star_camera.cpp @@ -260,21 +260,20 @@ void CStarCamera::setViewportAngle(const FPoint &angles) { tempV5 -= row1; tempV6 -= row1; - tempV1 = tempV7 = tempV1.fn5(pose); - tempV4 = tempV1 = tempV4.fn5(pose); + tempV1 = tempV1.fn5(pose); + tempV4 = tempV4.fn5(pose); tempV5 = tempV5.fn5(pose); tempV6 = tempV6.fn5(pose); - tempV4 = tempV4 - tempV1; - FVector tempV9 = tempV5 - tempV1; - FVector tempV10 = tempV6 - tempV1; - + tempV4 -= tempV1; + tempV5 -= tempV1; + tempV6 -= tempV1; tempV4.normalize(); - tempV9.normalize(); - tempV10.normalize(); + tempV5.normalize(); + tempV6.normalize(); tempV1 += row1; - m1.set(tempV4, tempV9, tempV10); + m1.set(tempV4, tempV5, tempV6); _viewport.setOrientation(m1); _viewport.setPosition(tempV1); } else if (_matrixRow == 1) { |