diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-19 19:15:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-19 19:15:07 +0300 |
commit | c8b494048c86c3f4eeab05f0738d4c7b5a98ed6e (patch) | |
tree | 6cabf8aee1fa76e2793247822a8d329ea2a9488e /servergreps/hercules | |
parent | 0d949c4f2c3a31720d42928d4a4618e8b35afd5d (diff) | |
download | evol-tools-c8b494048c86c3f4eeab05f0738d4c7b5a98ed6e.tar.gz evol-tools-c8b494048c86c3f4eeab05f0738d4c7b5a98ed6e.tar.bz2 evol-tools-c8b494048c86c3f4eeab05f0738d4c7b5a98ed6e.tar.xz evol-tools-c8b494048c86c3f4eeab05f0738d4c7b5a98ed6e.zip |
servergreps: fix preffered packet id detection.
Diffstat (limited to 'servergreps/hercules')
-rw-r--r-- | servergreps/hercules/20140402/clientpreferredpackets.txt | 1 | ||||
-rwxr-xr-x | servergreps/hercules/packets.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/servergreps/hercules/20140402/clientpreferredpackets.txt b/servergreps/hercules/20140402/clientpreferredpackets.txt index ff7eafb..e69de29 100644 --- a/servergreps/hercules/20140402/clientpreferredpackets.txt +++ b/servergreps/hercules/20140402/clientpreferredpackets.txt @@ -1 +0,0 @@ -0815 -> 0360 CMSG_PLAYER_CHANGE_DIR clif->pChangeDir diff --git a/servergreps/hercules/packets.py b/servergreps/hercules/packets.py index ca4b169..35ddc02 100755 --- a/servergreps/hercules/packets.py +++ b/servergreps/hercules/packets.py @@ -364,6 +364,9 @@ def printPackets(packetDir): if packet in clientPackets: packet1 = clientPacketsManaPlusClient[packet] packet2 = clientPackets[packet] + if packet1[0] != name: + # skip if same id used for other packet already + continue if packet1[2] in serverFunctionToId: data = serverFunctionToId[packet1[2]] if packet1[2] == packet2[1] and serverFunctionToId[packet1[2]] != packet: |