diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/ad/ad_actor.cpp | 2 | ||||
-rw-r--r-- | engines/wintermute/ad/ad_actor.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/ad/ad_actor.cpp b/engines/wintermute/ad/ad_actor.cpp index 1346a090f6..d0d04764df 100644 --- a/engines/wintermute/ad/ad_actor.cpp +++ b/engines/wintermute/ad/ad_actor.cpp @@ -915,7 +915,7 @@ void AdActor::getNextStep() { ////////////////////////////////////////////////////////////////////////// -void AdActor::initLine(BasePoint startPt, BasePoint endPt) { +void AdActor::initLine(const BasePoint &startPt, const BasePoint &endPt) { _pFCount = MAX((abs(endPt.x - startPt.x)) , (abs(endPt.y - startPt.y))); _pFStepX = (double)(endPt.x - startPt.x) / _pFCount; diff --git a/engines/wintermute/ad/ad_actor.h b/engines/wintermute/ad/ad_actor.h index bcec9db319..ebf686f74b 100644 --- a/engines/wintermute/ad/ad_actor.h +++ b/engines/wintermute/ad/ad_actor.h @@ -93,7 +93,7 @@ private: bool mergeAnims(const char *animsFilename); BaseSprite *_animSprite2; - void initLine(BasePoint startPt, BasePoint endPt); + void initLine(const BasePoint &startPt, const BasePoint &endPt); void getNextStep(); void followPath(); double _pFStepX; |