diff options
author | Paul Gilbert | 2017-06-05 20:27:59 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-06-05 20:27:59 -0400 |
commit | 13048f2af005a717d324ad0375cca5081cd416ba (patch) | |
tree | 1e7e161afcc3adae84062428a07f5b11da475b15 /engines | |
parent | 39ffcf7a1bbe56f42f977c81bf089a36803d8158 (diff) | |
download | scummvm-rg350-13048f2af005a717d324ad0375cca5081cd416ba.tar.gz scummvm-rg350-13048f2af005a717d324ad0375cca5081cd416ba.tar.bz2 scummvm-rg350-13048f2af005a717d324ad0375cca5081cd416ba.zip |
TITANIC: Add some const prefixes to mover proc2
Diffstat (limited to 'engines')
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); }; |