mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 16:35:20 +00:00
WINTERMUTE: Avoid passing BasePoint by-value
This commit is contained in:
parent
5be672a8f4
commit
c93a9c4805
@ -420,7 +420,7 @@ bool AdScene::isWalkableAt(int x, int y, bool checkFreeObjects, BaseObject *requ
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
int AdScene::getPointsDist(BasePoint p1, BasePoint p2, BaseObject *requester) {
|
||||
int AdScene::getPointsDist(const BasePoint &p1, const BasePoint &p2, BaseObject *requester) {
|
||||
double xStep, yStep, x, y;
|
||||
int xLength, yLength, xCount, yCount;
|
||||
int x1, y1, x2, y2;
|
||||
|
@ -153,7 +153,7 @@ public:
|
||||
BaseArray<AdRotLevel *> _rotLevels;
|
||||
|
||||
virtual bool restoreDeviceObjects();
|
||||
int getPointsDist(BasePoint p1, BasePoint p2, BaseObject *requester = nullptr);
|
||||
int getPointsDist(const BasePoint &p1, const BasePoint &p2, BaseObject *requester = nullptr);
|
||||
|
||||
// scripting interface
|
||||
virtual ScValue *scGetProperty(const Common::String &name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user