diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-10 15:31:24 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-23 21:07:14 -0700 |
commit | 1c1752f40aac20bf9a5e56817951a013c2219bed (patch) | |
tree | d4ca348dd88ec08cf4edbdd37b72396b75a914a4 /src/char/char.cpp | |
parent | 8ce2f240dba5bdd0ca47ac25f16f140d8d1744fc (diff) | |
download | tmwa-1c1752f40aac20bf9a5e56817951a013c2219bed.tar.gz tmwa-1c1752f40aac20bf9a5e56817951a013c2219bed.tar.bz2 tmwa-1c1752f40aac20bf9a5e56817951a013c2219bed.tar.xz tmwa-1c1752f40aac20bf9a5e56817951a013c2219bed.zip |
Generate the map server protocol
Sigh, map server will have no smart filters yet
Diffstat (limited to 'src/char/char.cpp')
-rw-r--r-- | src/char/char.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
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<const Byte *>(&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) { |