summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-20 14:02:03 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-20 14:02:03 -0400
commit943c01d67d89adf4c30da29b95cf5ac639fae0a7 (patch)
treeff9ac05e18a6290757d7eebfcaafa06a1480515b /src/char
parentbccfdfdda350f7921c437e462942015b1d990771 (diff)
downloadtmwa-943c01d67d89adf4c30da29b95cf5ac639fae0a7.tar.gz
tmwa-943c01d67d89adf4c30da29b95cf5ac639fae0a7.tar.bz2
tmwa-943c01d67d89adf4c30da29b95cf5ac639fae0a7.tar.xz
tmwa-943c01d67d89adf4c30da29b95cf5ac639fae0a7.zip
add client version to packet 0x2b02
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.cpp5
1 files changed, 4 insertions, 1 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);
}