summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-08 08:43:28 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-08 08:43:28 +0000
commit48d5e34204d9b077bc22cd095deb1006e621d930 (patch)
tree0e1c84e303bd9985b38bf60bd63fba07f7a36e9f /src/map
parenta31d04361d3bbfa96519ecd2632e09e6fcb26e04 (diff)
downloadhercules-48d5e34204d9b077bc22cd095deb1006e621d930.tar.gz
hercules-48d5e34204d9b077bc22cd095deb1006e621d930.tar.bz2
hercules-48d5e34204d9b077bc22cd095deb1006e621d930.tar.xz
hercules-48d5e34204d9b077bc22cd095deb1006e621d930.zip
- 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
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c6
1 files changed, 6 insertions, 0 deletions
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) {