diff options
4 files changed, 8 insertions, 8 deletions
diff --git a/engines/titanic/star_control/star_control_sub23.cpp b/engines/titanic/star_control/star_control_sub23.cpp index 3f35481759..f72d5c846b 100644 --- a/engines/titanic/star_control/star_control_sub23.cpp +++ b/engines/titanic/star_control/star_control_sub23.cpp @@ -41,8 +41,8 @@ CStarControlSub23::CStarControlSub23() : _srcPos(0.0, 1000000.0, 0.0) { _transitionPercentInc = 0.0; } -void CStarControlSub23::proc2(FVector &oldPos, FVector &newPos, - FMatrix &oldOrientation, FMatrix &newOrientation) { +void CStarControlSub23::proc2(const FVector &oldPos, const FVector &newPos, + const FMatrix &oldOrientation, const FMatrix &newOrientation) { _srcPos = oldPos; _destPos = newPos; _posDelta = _destPos - _srcPos; diff --git a/engines/titanic/star_control/star_control_sub23.h b/engines/titanic/star_control/star_control_sub23.h index dec208dc66..af6d9de784 100644 --- a/engines/titanic/star_control/star_control_sub23.h +++ b/engines/titanic/star_control/star_control_sub23.h @@ -53,8 +53,8 @@ public: CStarControlSub23(); virtual ~CStarControlSub23() {} - virtual void proc2(FVector &oldPos, FVector &newPos, - FMatrix &oldOrientation, FMatrix &newOrientation); + virtual void proc2(const FVector &oldPos, const FVector &newPos, + const FMatrix &oldOrientation, const FMatrix &newOrientation); virtual void proc3(const FMatrix &srcOrient, const FMatrix &destOrient); virtual void setPath(const FVector &srcV, const FVector &destV, const FMatrix &orientation); virtual int proc5(CErrorCode &errorCode, FVector &pos, FMatrix &orientation) { return 2; } diff --git a/engines/titanic/star_control/star_control_sub27.cpp b/engines/titanic/star_control/star_control_sub27.cpp index 1664a1f1e5..121258101a 100644 --- a/engines/titanic/star_control/star_control_sub27.cpp +++ b/engines/titanic/star_control/star_control_sub27.cpp @@ -25,8 +25,8 @@ namespace Titanic { -void CStarControlSub27::proc2(FVector &oldPos, FVector &newPos, - FMatrix &oldOrientation, FMatrix &newOrientation) { +void CStarControlSub27::proc2(const FVector &oldPos, const FVector &newPos, + const FMatrix &oldOrientation, const FMatrix &newOrientation) { CStarControlSub23::proc2(oldPos, newPos, oldOrientation, newOrientation); double distance = _distance; diff --git a/engines/titanic/star_control/star_control_sub27.h b/engines/titanic/star_control/star_control_sub27.h index 311cf786c0..c6d29b1ddf 100644 --- a/engines/titanic/star_control/star_control_sub27.h +++ b/engines/titanic/star_control/star_control_sub27.h @@ -38,8 +38,8 @@ private: public: virtual ~CStarControlSub27() {} - virtual void proc2(FVector &oldPos, FVector &newPos, - FMatrix &oldOrientation, FMatrix &newOrientation); + virtual void proc2(const FVector &oldPos, const FVector &newPos, + const FMatrix &oldOrientation, const FMatrix &newOrientation); virtual int proc5(CErrorCode &errorCode, FVector &pos, FMatrix &orientation); }; |