mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix unpacking of net events
The UUID objects accidently made it into the lists of object sizes.
This commit is contained in:
parent
5ae37e6c72
commit
555e8fe889
|
@ -194,19 +194,20 @@ if gen_network_source:
|
|||
|
||||
lines += ["const char *CNetObjHandler::ms_apObjNames[] = {"]
|
||||
lines += ['\t"invalid",']
|
||||
lines += ['\t"%s",' % o.name for o in network.Objects]
|
||||
lines += ['\t"%s",' % o.name for o in network.Objects if o.ex is None]
|
||||
lines += ['\t""', "};", ""]
|
||||
|
||||
lines += ["int CNetObjHandler::ms_aObjSizes[] = {"]
|
||||
lines += ['\t0,']
|
||||
lines += ['\tsizeof(%s),' % o.struct_name for o in network.Objects]
|
||||
lines += ['\tsizeof(%s),' % o.struct_name for o in network.Objects if o.ex is None]
|
||||
lines += ['\t0', "};", ""]
|
||||
|
||||
|
||||
lines += ['const char *CNetObjHandler::ms_apMsgNames[] = {']
|
||||
lines += ['\t"invalid",']
|
||||
for msg in network.Messages:
|
||||
lines += ['\t"%s",' % msg.name]
|
||||
if msg.ex is None:
|
||||
lines += ['\t"%s",' % msg.name]
|
||||
lines += ['\t""']
|
||||
lines += ['};']
|
||||
lines += ['']
|
||||
|
|
Loading…
Reference in a new issue