From 3f0e5c66f9bce7581b7fa56d12accd13e0725c88 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Mon, 25 May 2009 05:31:24 +0200 Subject: Send the 2741 reply packet directly back to the requesting char server. --- src/char/char.c | 1 - src/login/login.c | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/char/char.c b/src/char/char.c index 3c12b84..b8ce145 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -2458,7 +2458,6 @@ int parse_char(int fd) { memcpy(WFIFOP(login_fd,6), RFIFOP(fd,2), 24); memcpy(WFIFOP(login_fd,30), RFIFOP(fd,26), 24); WFIFOSET(login_fd,54); - } RFIFOSKIP(fd,50); break; diff --git a/src/login/login.c b/src/login/login.c index 29e3959..bf28e48 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1709,11 +1709,10 @@ int parse_fromchar(int fd) { break; } } - unsigned char buf[16]; - WBUFW(buf,0) = 0x2741; - WBUFL(buf,2) = acc; - WBUFB(buf,6) = status; // 0: acc not found, 1: success, 2: password mismatch, 3: pass too short - charif_sendallwos(-1, buf, 7); + WFIFOW(fd,0) = 0x2741; + WFIFOL(fd,2) = acc; + WFIFOB(fd,6) = status; // 0: acc not found, 1: success, 2: password mismatch, 3: pass too short + WFIFOSET(fd,7); } RFIFOSKIP(fd, 54); -- cgit v1.2.3-70-g09d2