Skip to content

Commit

Permalink
TITANIC: Fix CStarControlSub13 _valArray setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Apr 1, 2017
1 parent 51f80a5 commit f98abd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions engines/titanic/star_control/star_control_sub13.cpp
Expand Up @@ -160,17 +160,17 @@ void CStarControlSub13::fn12() {
_flag = false;
}

void CStarControlSub13::fn13(StarMode mode, double v2) {
if (mode == MODE_STARFIELD) {
_valArray[0] = v2;
_valArray[1] = -v2;
void CStarControlSub13::fn13(StarMode mode, double val) {
if (mode == MODE_PHOTO) {
_valArray[0] = val;
_valArray[1] = -val;
} else {
_valArray[3] = v2;
_valArray[4] = -v2;
_valArray[3] = val;
_valArray[4] = -val;
}

_valArray[2] = 0.0;
_field24 = v2 ? 2 : 0;
_field24 = val ? 2 : 0;
}

void CStarControlSub13::reposition(double factor) {
Expand Down
2 changes: 1 addition & 1 deletion engines/titanic/star_control/star_control_sub13.h
Expand Up @@ -87,7 +87,7 @@ class CStarControlSub13 {

void fn11(const FVector &v);
void fn12();
void fn13(StarMode mode, double v2);
void fn13(StarMode mode, double val);
void reposition(double factor);
void fn15(const FMatrix &matrix);
CStarControlSub6 getSub1();
Expand Down

0 comments on commit f98abd4

Please sign in to comment.