From 48d5e34204d9b077bc22cd095deb1006e621d930 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 8 Nov 2007 08:43:28 +0000 Subject: - Fixed not all objects spawning within your range of sight when you warp/relog if CIRCULAR_AREA is defined. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11694 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 50c3eee15..c5cab5987 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -7965,7 +7965,13 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) clif_set0199(fd,3); // info about nearby objects +#ifdef CIRCULAR_AREA + // required as circular areas will not catch all objects in visible range. + map_foreachinarea(clif_getareachar, sd->bl.m, sd->bl.x-AREA_SIZE, sd->bl.y-AREA_SIZE, sd->bl.x+AREA_SIZE, sd->bl.y+AREA_SIZE, BL_ALL, sd); +#else map_foreachinrange(clif_getareachar, &sd->bl, AREA_SIZE, BL_ALL, sd); +#endif + // pet if(sd->pd) { -- cgit v1.2.3-60-g2f50