diff options
Diffstat (limited to 'engines/titanic/star_control/star_view.cpp')
-rw-r--r-- | engines/titanic/star_control/star_view.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/titanic/star_control/star_view.cpp b/engines/titanic/star_control/star_view.cpp index d529012d98..9c9e9722d3 100644 --- a/engines/titanic/star_control/star_view.cpp +++ b/engines/titanic/star_control/star_view.cpp @@ -145,7 +145,7 @@ bool CStarView::MouseMoveMsg(int unused, const Point &pt) { } bool CStarView::KeyCharMsg(int key, CErrorCode *errorCode) { - CStarControlSub6 sub6; + FPose pose; int v = _starField ? _starField->get88() : -1; switch (key) { @@ -177,8 +177,8 @@ bool CStarView::KeyCharMsg(int key, CErrorCode *errorCode) { case Common::KEYCODE_z: case Common::KEYCODE_c: if (v == -1) { - sub6.setRotationMatrix(key == Common::KEYCODE_z ? Y_AXIS : X_AXIS, 1.0); - _sub12.proc22(sub6); + pose.setRotationMatrix(key == Common::KEYCODE_z ? Y_AXIS : X_AXIS, 1.0); + _sub12.proc22(pose); _sub12.proc15(errorCode); return true; } @@ -210,8 +210,8 @@ bool CStarView::KeyCharMsg(int key, CErrorCode *errorCode) { case Common::KEYCODE_x: if (v == -1) { - sub6.setRotationMatrix(Y_AXIS, -1.0); - _sub12.proc22(sub6); + pose.setRotationMatrix(Y_AXIS, -1.0); + _sub12.proc22(pose); _sub12.proc15(errorCode); return true; } @@ -219,8 +219,8 @@ bool CStarView::KeyCharMsg(int key, CErrorCode *errorCode) { case Common::KEYCODE_QUOTE: if (v == -1) { - sub6.setRotationMatrix(X_AXIS, -1.0); - _sub12.proc22(sub6); + pose.setRotationMatrix(X_AXIS, -1.0); + _sub12.proc22(pose); _sub12.proc15(errorCode); return true; } |