diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-01 23:08:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-01 23:16:32 +0300 |
commit | 53eede04dc83830481fa0981f47339e2c8072b42 (patch) | |
tree | c84798a327ee988afb9239cf27781ca538d18250 /src/net/recvpacketdefine.h | |
parent | 83915bb5c10c8b694e633b8e3089603d3281b8a0 (diff) | |
download | manaplus-53eede04dc83830481fa0981f47339e2c8072b42.tar.gz manaplus-53eede04dc83830481fa0981f47339e2c8072b42.tar.bz2 manaplus-53eede04dc83830481fa0981f47339e2c8072b42.tar.xz manaplus-53eede04dc83830481fa0981f47339e2c8072b42.zip |
Use packet sizes from packetsin.inc
Diffstat (limited to 'src/net/recvpacketdefine.h')
-rw-r--r-- | src/net/recvpacketdefine.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/recvpacketdefine.h b/src/net/recvpacketdefine.h index f043c2364..1e282d09c 100644 --- a/src/net/recvpacketdefine.h +++ b/src/net/recvpacketdefine.h @@ -21,6 +21,7 @@ #ifndef NET_RECVPACKETDEFINE_H #define NET_RECVPACKETDEFINE_H -#define packet(pname, pid, sz) mPackets[pid].name = #pname +#define packet(pname, pid, sz) mPackets[pid].name = #pname; \ + mPackets[pid].len = sz #endif // NET_RECVPACKETDEFINE_H |