diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-06 22:29:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-06 22:29:22 +0300 |
commit | 8ad5521d3bbb57040c746de4af2c82d0a8477936 (patch) | |
tree | aa3780d612cd6fedfb9fc93f1d6b46ce187fe4eb /src/progs | |
parent | e34a496ae3b6fbb98115b9fe524cd202ddc8f795 (diff) | |
download | manaverse-8ad5521d3bbb57040c746de4af2c82d0a8477936.tar.gz manaverse-8ad5521d3bbb57040c746de4af2c82d0a8477936.tar.bz2 manaverse-8ad5521d3bbb57040c746de4af2c82d0a8477936.tar.xz manaverse-8ad5521d3bbb57040c746de4af2c82d0a8477936.zip |
Add variables with packet versions for each packet types (main, re, zero).
Diffstat (limited to 'src/progs')
-rw-r--r-- | src/progs/dyecmd/client.cpp | 3 | ||||
-rw-r--r-- | src/progs/manaplus/client.cpp | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp index 6d1ea8105..385a50919 100644 --- a/src/progs/dyecmd/client.cpp +++ b/src/progs/dyecmd/client.cpp @@ -122,6 +122,9 @@ volatile bool runCounters; bool isSafeMode = false; int serverVersion = 0; int packetVersion = 0; +int packetVersionMain = 0; +int packetVersionRe = 0; +int packetVersionZero = 0; int packetsType = 0; bool packets_main = true; bool packets_re = false; diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp index f2c381896..1ee563bac 100644 --- a/src/progs/manaplus/client.cpp +++ b/src/progs/manaplus/client.cpp @@ -191,6 +191,9 @@ volatile bool runCounters; bool isSafeMode = false; int serverVersion = 0; int packetVersion = 0; +int packetVersionMain = 0; +int packetVersionRe = 0; +int packetVersionZero = 0; int packetsType = 0; bool packets_main = true; bool packets_re = false; @@ -2015,6 +2018,9 @@ void Client::unloadData() localClan.clear(); serverVersion = 0; packetVersion = 0; + packetVersionMain = 0; + packetVersionRe = 0; + packetVersionZero = 0; tmwServerVersion = 0; evolPacketOffset = 0; } |