Browse Source

- 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
skotlex 17 năm trước cách đây
mục cha
commit
ea9b71e78b
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/map/clif.c

+ 6 - 0
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) {