aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-04-17 16:47:27 +0200
committerEinar Johan Trøan Sømåen2013-04-17 16:47:27 +0200
commit167c9f534b2918fdd2e08fd535d13d5dad9b6de0 (patch)
treee7edff90c83ded5d324a012db547ac997b4fcb13 /engines/wintermute
parentc93a9c48058a5f9b60cfcce71e8b05dc01145c04 (diff)
downloadscummvm-rg350-167c9f534b2918fdd2e08fd535d13d5dad9b6de0.tar.gz
scummvm-rg350-167c9f534b2918fdd2e08fd535d13d5dad9b6de0.tar.bz2
scummvm-rg350-167c9f534b2918fdd2e08fd535d13d5dad9b6de0.zip
WINTERMUTE: Avoid passing BasePoint by value in Scene::getPath()
Diffstat (limited to 'engines/wintermute')
-rw-r--r--engines/wintermute/ad/ad_scene.cpp2
-rw-r--r--engines/wintermute/ad/ad_scene.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/ad/ad_scene.cpp b/engines/wintermute/ad/ad_scene.cpp
index 221baf4bee..e5d9d31ee0 100644
--- a/engines/wintermute/ad/ad_scene.cpp
+++ b/engines/wintermute/ad/ad_scene.cpp
@@ -189,7 +189,7 @@ void AdScene::cleanup() {
//////////////////////////////////////////////////////////////////////////
-bool AdScene::getPath(BasePoint source, BasePoint target, AdPath *path, BaseObject *requester) {
+bool AdScene::getPath(const BasePoint &source, const BasePoint &target, AdPath *path, BaseObject *requester) {
if (!_pfReady) {
return false;
} else {
diff --git a/engines/wintermute/ad/ad_scene.h b/engines/wintermute/ad/ad_scene.h
index ffacc037a9..a820157361 100644
--- a/engines/wintermute/ad/ad_scene.h
+++ b/engines/wintermute/ad/ad_scene.h
@@ -117,7 +117,7 @@ public:
bool isWalkableAt(int x, int y, bool checkFreeObjects = false, BaseObject *requester = nullptr);
AdLayer *_mainLayer;
float getZoomAt(int x, int y);
- bool getPath(BasePoint source, BasePoint target, AdPath *path, BaseObject *requester = nullptr);
+ bool getPath(const BasePoint &source, const BasePoint &target, AdPath *path, BaseObject *requester = nullptr);
AdScene(BaseGame *inGame);
virtual ~AdScene();
BaseArray<AdLayer *> _layers;