diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-20 14:02:03 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-20 14:02:03 -0400 |
commit | 943c01d67d89adf4c30da29b95cf5ac639fae0a7 (patch) | |
tree | ff9ac05e18a6290757d7eebfcaafa06a1480515b /src | |
parent | bccfdfdda350f7921c437e462942015b1d990771 (diff) | |
download | tmwa-943c01d67d89adf4c30da29b95cf5ac639fae0a7.tar.gz tmwa-943c01d67d89adf4c30da29b95cf5ac639fae0a7.tar.bz2 tmwa-943c01d67d89adf4c30da29b95cf5ac639fae0a7.tar.xz tmwa-943c01d67d89adf4c30da29b95cf5ac639fae0a7.zip |
add client version to packet 0x2b02
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.cpp | 5 | ||||
-rw-r--r-- | src/map/chrif.cpp | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/char/char.cpp b/src/char/char.cpp index 3767c54..47fbba2 100644 --- a/src/char/char.cpp +++ b/src/char/char.cpp @@ -1781,7 +1781,7 @@ void parse_frommap(Session *ms) case 0x2b02: { Packet_Fixed<0x2b02> fixed; - rv = recv_fpacket<0x2b02, 18>(ms, fixed); + rv = recv_fpacket<0x2b02, 22>(ms, fixed); if (rv != RecvResult::Complete) break; @@ -1794,6 +1794,7 @@ void parse_frommap(Session *ms) auth_fifo_iter->login_id2 = fixed.login_id2; auth_fifo_iter->delflag = 2; auth_fifo_iter->ip = fixed.ip; + auth_fifo_iter->client_version = fixed.client_protocol_version; auth_fifo_iter++; Packet_Fixed<0x2b03> fixed_03; @@ -2277,6 +2278,8 @@ void parse_char(Session *s) send_fpacket<0x2716, 6>(login_session, fixed_16); } + sd->client_version = afi.client_version; + // send characters to player mmo_char_send006b(s, sd); } diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp index 708cbe1..42a13cf 100644 --- a/src/map/chrif.cpp +++ b/src/map/chrif.cpp @@ -334,7 +334,8 @@ int chrif_charselectreq(dumb_ptr<map_session_data> sd) fixed_02.login_id1 = sd->login_id1; fixed_02.login_id2 = sd->login_id2; fixed_02.ip = s_ip; - send_fpacket<0x2b02, 18>(char_session, fixed_02); + fixed_02.client_protocol_version = sd->client_version; + send_fpacket<0x2b02, 22>(char_session, fixed_02); return 0; } |