From 92e0ba66459af6a5ac7ef53fb24a681db100f901 Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Mon, 26 Dec 2011 18:20:00 +0000 Subject: =?UTF-8?q?-=20improved=20ClosestPlayerDetection=20(Really=20the?= =?UTF-8?q?=20closest=20now=20;))=20-=20renamed=20function=20because=20the?= =?UTF-8?q?=20old=20one=20wasn=C2=B4t=20listing=20-=20improved=20some=20ti?= =?UTF-8?q?me=20vars=20so=20no=20move=20gets=20dropped=20when=20the=20serv?= =?UTF-8?q?er=20laggs=20for=20a=20few=20seconds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://mc-server.googlecode.com/svn/trunk@124 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cMonster.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cMonster.h') diff --git a/source/cMonster.h b/source/cMonster.h index 6523c2e52..90340311e 100644 --- a/source/cMonster.h +++ b/source/cMonster.h @@ -35,7 +35,7 @@ public: virtual void CheckEventSeePlayer(); virtual void EventSeePlayer(cEntity *); float m_SightDistance; - static void ListClosePlayers(cMonster *); + virtual cPlayer *FindClosestPlayer(); //non static is easier. also virtual so other mobs can implement their own searching algo virtual void GetMonsterConfig(const char* pm_name); virtual void EventLosePlayer(); virtual void CheckEventLostPlayer(); -- cgit v1.2.3