diff options
-rw-r--r-- | engines/titanic/star_control/star_control_sub13.cpp | 14 | ||||
-rw-r--r-- | engines/titanic/star_control/star_control_sub13.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/engines/titanic/star_control/star_control_sub13.cpp b/engines/titanic/star_control/star_control_sub13.cpp index dd4fcded01..6475c75589 100644 --- a/engines/titanic/star_control/star_control_sub13.cpp +++ b/engines/titanic/star_control/star_control_sub13.cpp @@ -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) { diff --git a/engines/titanic/star_control/star_control_sub13.h b/engines/titanic/star_control/star_control_sub13.h index 3c8606d697..e47c42e6eb 100644 --- a/engines/titanic/star_control/star_control_sub13.h +++ b/engines/titanic/star_control/star_control_sub13.h @@ -87,7 +87,7 @@ public: 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(); |