diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/chrif.c | 2 | ||||
-rw-r--r-- | src/map/map.c | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index d23bf8b52..e250c8a18 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -1071,7 +1071,7 @@ int chrif_parse(int fd) case 0x2afb: chrif_sendmapack(fd); break; case 0x2afd: pc_authok(RFIFOL(fd,4), RFIFOL(fd,8), (time_t)RFIFOL(fd,12), (struct mmo_charstatus*)RFIFOP(fd,16)); break; case 0x2afe: pc_authfail(RFIFOL(fd,2)); break; - case 0x2b00: map_setusers(RFIFOL(fd,2)); break; + case 0x2b00: map_setusers(fd); break; case 0x2b03: clif_charselectok(RFIFOL(fd,2)); break; case 0x2b04: chrif_recvmap(fd); break; case 0x2b06: chrif_changemapserverack(fd); break; diff --git a/src/map/map.c b/src/map/map.c index 7dd073f4b..902306ce8 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -180,8 +180,12 @@ int console = 0; * (char鯖から送られてくる) *------------------------------------------ */ -void map_setusers(int n) { - users = n; +void map_setusers(int fd) +{ + users = RFIFOL(fd,2); + // send some anser + WFIFOW(fd,0) = 0x2718; + WFIFOSET(fd,2); } /*========================================== |