From 1c1752f40aac20bf9a5e56817951a013c2219bed Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 10 Jun 2014 15:31:24 -0700 Subject: Generate the map server protocol Sigh, map server will have no smart filters yet --- src/char/char.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/char/char.cpp') diff --git a/src/char/char.cpp b/src/char/char.cpp index d36eb80..33ee2b9 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -2464,15 +2464,12 @@ void parse_char(Session *s) sd->login_id2 = fixed.login_id2; sd->packet_tmw_version = fixed.packet_tmw_version; sd->sex = fixed.sex; - // send back account_id - // TODO put this into a proper packet - Little32 account_id_net; - if (!native_to_network(&account_id_net, account_id) - || !packet_send(s, reinterpret_cast(&account_id_net), 4)) - { - s->set_eof(); - return; - } + + // formerly: send back account_id + Packet_Payload<0x8000> special; + special.magic_packet_length = 4; + send_ppacket<0x8000>(s, special); + // search authentification for (AuthFifoEntry& afi : auth_fifo) { -- cgit v1.2.3-60-g2f50