diff options
-rw-r--r-- | src/game/Object.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Object.h b/src/game/Object.h index 9c073219d7b..dd8b808b920 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -560,10 +560,10 @@ class WorldObject : public Object, public WorldLocation bool IsInMap(const WorldObject* obj) const { - if (obj)
- return IsInWorld() && obj->IsInWorld() && (GetMap() == obj->GetMap()) && InSamePhase(obj);
- else
- return false;
+ if (obj) + return IsInWorld() && obj->IsInWorld() && (GetMap() == obj->GetMap()) && InSamePhase(obj); + else + return false; } bool IsWithinDist3d(float x, float y, float z, float dist) const { return IsInDist(x, y, z, dist + GetObjectSize()); } |