aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control
diff options
context:
space:
mode:
authorDavid Fioramonti2017-08-16 05:33:09 -0700
committerDavid Fioramonti2017-08-16 19:11:50 -0700
commitfb1e9453fb63e9533ef70c616118c3b49238ac20 (patch)
treef68e8bea93451174513a706d00c2c6814ba3813d /engines/titanic/star_control
parent5ebc972c25cd40cb7aec86904bfc2ecfd2aa1ab7 (diff)
downloadscummvm-rg350-fb1e9453fb63e9533ef70c616118c3b49238ac20.tar.gz
scummvm-rg350-fb1e9453fb63e9533ef70c616118c3b49238ac20.tar.bz2
scummvm-rg350-fb1e9453fb63e9533ef70c616118c3b49238ac20.zip
TITANIC: Unmarked starviewer, fix, key directions
Changing the fpose Y axis rotations flipped some of the keys (z,x) so I added in negatives to fix that. Also before slash was looking up and comma was looking down. This is the same as the original, but I think thats less intuitive so I have reversed that. It also makes those keys now correct in the readme.
Diffstat (limited to 'engines/titanic/star_control')
-rw-r--r--engines/titanic/star_control/star_view.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/titanic/star_control/star_view.cpp b/engines/titanic/star_control/star_view.cpp
index 465e974d44..9b27fa470e 100644
--- a/engines/titanic/star_control/star_view.cpp
+++ b/engines/titanic/star_control/star_view.cpp
@@ -176,9 +176,8 @@ bool CStarView::KeyCharMsg(int key, CErrorCode *errorCode) {
}
case Common::KEYCODE_z:
- case Common::KEYCODE_c:
if (matchedIndex == -1) {
- pose.setRotationMatrix(key == Common::KEYCODE_z ? Y_AXIS : X_AXIS, 1.0);
+ pose.setRotationMatrix(Y_AXIS, -1.0);
_camera.proc22(pose);
_camera.updatePosition(errorCode);
return true;
@@ -211,7 +210,7 @@ bool CStarView::KeyCharMsg(int key, CErrorCode *errorCode) {
case Common::KEYCODE_x:
if (matchedIndex == -1) {
- pose.setRotationMatrix(Y_AXIS, -1.0);
+ pose.setRotationMatrix(Y_AXIS, 1.0);
_camera.proc22(pose);
_camera.updatePosition(errorCode);
return true;
@@ -220,7 +219,7 @@ bool CStarView::KeyCharMsg(int key, CErrorCode *errorCode) {
case Common::KEYCODE_QUOTE:
if (matchedIndex == -1) {
- pose.setRotationMatrix(X_AXIS, -1.0);
+ pose.setRotationMatrix(X_AXIS, 1.0);
_camera.proc22(pose);
_camera.updatePosition(errorCode);
return true;
@@ -229,7 +228,7 @@ bool CStarView::KeyCharMsg(int key, CErrorCode *errorCode) {
case Common::KEYCODE_SLASH:
if (matchedIndex == -1) {
- pose.setRotationMatrix(X_AXIS, 1.0);
+ pose.setRotationMatrix(X_AXIS, -1.0);
_camera.proc22(pose);
_camera.updatePosition(errorCode);
return true;