Skip to content

Commit

Permalink
TITANIC: Extra comments and fix an incorrect DMatrix to be FMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jun 3, 2017
1 parent a673531 commit 8c31328
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engines/titanic/star_control/star_camera.cpp
Expand Up @@ -228,11 +228,13 @@ void CStarCamera::setViewportAngle(const FPoint &angles) {
return;

if (_matrixRow == -1) {
// No locked markers
FPose subX(X_AXIS, angles._y);
FPose subY(Y_AXIS, angles._x);
FPose sub(subX, subY);
proc22(sub);
} else if (_matrixRow == 0) {
// 1 marker is locked in
FVector row1 = _matrix._row1;
FPose subX(X_AXIS, angles._y);
FPose subY(Y_AXIS, angles._x);
Expand Down Expand Up @@ -316,6 +318,7 @@ void CStarCamera::setViewportAngle(const FPoint &angles) {
_viewport.setOrientation(m1);
_viewport.setPosition(tempV1);
} else if (_matrixRow == 1) {
// 2 markers locked in
FVector tempV2;
DMatrix m1, m2, sub;
DVector mrow1, mrow2, mrow3;
Expand Down Expand Up @@ -504,7 +507,7 @@ void CStarCamera::fn2(FVector v1, FVector v2, FVector v3) {
v3.normalize();
tempV.normalize();

DMatrix matrix = _viewport.getOrientation();
FMatrix matrix = _viewport.getOrientation();
const FVector &pos = _viewport._position;
_mover->proc10(v3, tempV, pos, matrix);

Expand Down
4 changes: 4 additions & 0 deletions engines/titanic/star_control/star_control_sub21.h
Expand Up @@ -35,7 +35,11 @@ class CStarControlSub21 : public CCameraMover {
CStarControlSub21(const CNavigationInfo *src);
virtual ~CStarControlSub21() {}

/**
* Start a movement to a given specified destination
*/
virtual void moveTo(const FVector &srcV, const FVector &destV, const FMatrix &orientation);

virtual void proc10(const FVector &v1, const FVector &v2, const FVector &v3, const FMatrix &m);

/**
Expand Down

0 comments on commit 8c31328

Please sign in to comment.