aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-18 09:44:57 -0600
committermegamage <none@none>2008-12-18 09:44:57 -0600
commit0f1f748138495ec80e079227c0002e233b3173bd (patch)
treec9b904116b791a4cad94ccc1b94a52a9fdceb173 /src/game/Object.cpp
parent49290bf0106675cee9920d4bbbf950e2b3b18d06 (diff)
*Fix build in Linux.
*Fix a bug of bloodboil. By Anubisss. --HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 7de1cb5da4e..b4be90747cf 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1620,3 +1620,9 @@ void WorldObject::GetNearPoint(WorldObject const* searcher, float &x, float &y,
UpdateGroundPositionZ(x,y,z);
}
+
+template<class NOTIFIER>
+void WorldObject::VisitNearbyObject(const float &radius, NOTIFIER &notifier) const
+{
+ GetMap()->VisitAll(GetPositionX(), GetPositionY(), radius, notifier);
+} \ No newline at end of file