diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-13 00:40:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-13 00:40:44 +0300 |
commit | c28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1 (patch) | |
tree | 414bd0a0e2cfee87e9d57857d071edcf92a7974a /src/net/recvpacketdefine.h | |
parent | 906331c5a512e54424b148a2a89590bc03a704ff (diff) | |
download | manaverse-c28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1.tar.gz manaverse-c28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1.tar.bz2 manaverse-c28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1.tar.xz manaverse-c28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1.zip |
Add offset for all defined evol packets.
For now offset always 0.
Diffstat (limited to 'src/net/recvpacketdefine.h')
-rw-r--r-- | src/net/recvpacketdefine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h index 50c4badac..1ba7bba58 100644 --- a/src/net/recvpacketdefine.h +++ b/src/net/recvpacketdefine.h @@ -27,4 +27,10 @@ mPackets[pid].func = pfunc; \ mPackets[pid].version = ver +#define packet2(pname, pid, sz, pfunc, ver) \ + mPackets[pid + evolPacketOffset].name = #pname; \ + mPackets[pid + evolPacketOffset].len = sz; \ + mPackets[pid + evolPacketOffset].func = pfunc; \ + mPackets[pid + evolPacketOffset].version = ver + #endif // NET_RECVPACKETDEFINE_H |