- Fixed not all objects spawning within your range of sight when you warp/relog if CIRCULAR_AREA is defined.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11694 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
3575f9ad9a
commit
ea9b71e78b
@ -7965,7 +7965,13 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
|
|||||||
clif_set0199(fd,3);
|
clif_set0199(fd,3);
|
||||||
|
|
||||||
// info about nearby objects
|
// 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);
|
map_foreachinrange(clif_getareachar, &sd->bl, AREA_SIZE, BL_ALL, sd);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// pet
|
// pet
|
||||||
if(sd->pd) {
|
if(sd->pd) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user