diff options
author | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-13 20:46:13 +0000 |
---|---|---|
committer | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-13 20:46:13 +0000 |
commit | 9e03b158bb2f558c79a8df988cacf7bdf66df12e (patch) | |
tree | 8d3e9417c2a5feb12d081ae57bf30edc43f92948 /src | |
parent | b111ed855ab5a114c62767f0a5a9dd4dad233db5 (diff) | |
download | hercules-9e03b158bb2f558c79a8df988cacf7bdf66df12e.tar.gz hercules-9e03b158bb2f558c79a8df988cacf7bdf66df12e.tar.bz2 hercules-9e03b158bb2f558c79a8df988cacf7bdf66df12e.tar.xz hercules-9e03b158bb2f558c79a8df988cacf7bdf66df12e.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |