aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-04-17 16:05:20 +0200
committerEinar Johan Trøan Sømåen2013-04-17 16:05:20 +0200
commita69512a0c2cdd9b60a4c9d97470966d1cc36e338 (patch)
treee6d9229750f1876d99c62f6c7267265211c89afd
parent8430c491f0dcb8693262d49add71466a45fe37cf (diff)
downloadscummvm-rg350-a69512a0c2cdd9b60a4c9d97470966d1cc36e338.tar.gz
scummvm-rg350-a69512a0c2cdd9b60a4c9d97470966d1cc36e338.tar.bz2
scummvm-rg350-a69512a0c2cdd9b60a4c9d97470966d1cc36e338.zip
WINTERMUTE: Avoid passing BasePoint by value.
-rw-r--r--engines/wintermute/ad/ad_actor.cpp2
-rw-r--r--engines/wintermute/ad/ad_actor.h2
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;