summaryrefslogtreecommitdiff
path: root/src/net/recvpacketdefine.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-02 02:20:48 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-02 02:20:48 +0300
commit7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa (patch)
tree6eb9f0aebf7e80242f5b8e23fb0ea2f98635a47a /src/net/recvpacketdefine.h
parent1e302305d8777da7b40b1ae53ae33eab866b9e26 (diff)
downloadmanaverse-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.tar.gz
manaverse-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.tar.bz2
manaverse-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.tar.xz
manaverse-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.zip
Use packet handlers from packet defines.
Diffstat (limited to 'src/net/recvpacketdefine.h')
-rw-r--r--src/net/recvpacketdefine.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h
index a62acc468..e40b5d7ac 100644
--- a/src/net/recvpacketdefine.h
+++ b/src/net/recvpacketdefine.h
@@ -21,8 +21,9 @@
#ifndef NET_RECVPACKETDEFINE_H
#define NET_RECVPACKETDEFINE_H
-#define packet(pname, pid, sz, func) \
+#define packet(pname, pid, sz, pfunc) \
mPackets[pid].name = #pname; \
- mPackets[pid].len = sz
+ mPackets[pid].len = sz; \
+ mPackets[pid].func = pfunc
#endif // NET_RECVPACKETDEFINE_H