From 9e03b158bb2f558c79a8df988cacf7bdf66df12e Mon Sep 17 00:00:00 2001 From: gepard1984 Date: Tue, 13 Mar 2012 20:46:13 +0000 Subject: Fixed char-server notifying map-servers only about first 30 maps (on other map-servers) (bugreport:5410). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15686 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/char.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/char') diff --git a/src/char/char.c b/src/char/char.c index dccadc9fe..7f5d8950f 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -2527,12 +2527,12 @@ int parse_frommap(int fd) // Transmitting the maps of the other map-servers to the new map-server for(x = 0; x < ARRAYLENGTH(server); x++) { if (server[x].fd > 0 && x != id) { - WFIFOHEAD(fd,10 +4*ARRAYLENGTH(server)); + WFIFOHEAD(fd,10 +4*ARRAYLENGTH(server[x].map)); WFIFOW(fd,0) = 0x2b04; WFIFOL(fd,4) = htonl(server[x].ip); WFIFOW(fd,8) = htons(server[x].port); j = 0; - for(i = 0; i < ARRAYLENGTH(server); i++) + for(i = 0; i < ARRAYLENGTH(server[x].map); i++) if (server[x].map[i]) WFIFOW(fd,10+(j++)*4) = server[x].map[i]; if (j > 0) { -- cgit v1.2.3-60-g2f50