summaryrefslogtreecommitdiff
path: root/servergreps
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-19 19:15:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-19 19:15:07 +0300
commitc8b494048c86c3f4eeab05f0738d4c7b5a98ed6e (patch)
tree6cabf8aee1fa76e2793247822a8d329ea2a9488e /servergreps
parent0d949c4f2c3a31720d42928d4a4618e8b35afd5d (diff)
downloadevol-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')
-rw-r--r--servergreps/hercules/20140402/clientpreferredpackets.txt1
-rwxr-xr-xservergreps/hercules/packets.py3
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: