summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-01-27 18:07:45 -0500
committergumi <mekolat@users.noreply.github.com>2017-01-27 18:15:57 -0500
commitac005d74dd4d2ae318a56d2142cb997891e79bf6 (patch)
tree10b331a892ae1d1a32ae50ceb81f8fc49c854f5e /src/map/clif.c
parent7d71a0828ccb4149d5ce8b13cd5bd2f84a911d6b (diff)
downloadhercules-ac005d74dd4d2ae318a56d2142cb997891e79bf6.tar.gz
hercules-ac005d74dd4d2ae318a56d2142cb997891e79bf6.tar.bz2
hercules-ac005d74dd4d2ae318a56d2142cb997891e79bf6.tar.xz
hercules-ac005d74dd4d2ae318a56d2142cb997891e79bf6.zip
remove hardcoded chat area size from clif.c, add chat_area_size to battleconf
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 887fa9d64..c48241898 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -451,8 +451,8 @@ bool clif_send(const void* buf, int len, struct block_list* bl, enum send_target
break;
case AREA_CHAT_WOC:
nullpo_retr(true, bl);
- map->foreachinarea(clif->send_sub, bl->m, bl->x-(AREA_SIZE-5), bl->y-(AREA_SIZE-5),
- bl->x+(AREA_SIZE-5), bl->y+(AREA_SIZE-5), BL_PC, buf, len, bl, AREA_WOC);
+ map->foreachinarea(clif->send_sub, bl->m, bl->x-CHAT_AREA_SIZE, bl->y-CHAT_AREA_SIZE,
+ bl->x+CHAT_AREA_SIZE, bl->y+CHAT_AREA_SIZE, BL_PC, buf, len, bl, AREA_WOC);
break;
case CHAT: