diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-02 18:42:02 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-02 18:42:02 +0100 |
| commit | 2b9b3e78d9d448e4dfb4eaaa87b5f290ebee9cff (patch) | |
| tree | b2c1ccec5c03e69d4c709634184942ef39ebffca /src/protocol.c | |
| parent | 11fc04b238ff9d42b17e6befa6ab4a673606fc1a (diff) | |
zombie chunks on server side
Diffstat (limited to 'src/protocol.c')
| -rw-r--r-- | src/protocol.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c index a33f421..d8506b7 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -51,6 +51,14 @@ network_message create_protocol_zombie_list() return network_create_message((u8*)buf, sizeof(protocol_zombie_list), MAX_NETWORK_BUFFER_SIZE); } +network_message create_protocol_zombie_chunk_list() +{ + protocol_zombie_chunk_list *buf = alloc_network_message(protocol_zombie_chunk_list); + buf->type = MESSAGE_ZOMBIE_CHUNK_LIST; + memcpy(buf->zombie_chunks, zombie_chunks, sizeof(zombie_chunks)); + return network_create_message((u8*)buf, sizeof(protocol_zombie_chunk_list), MAX_NETWORK_BUFFER_SIZE); +} + network_message create_protocol_bullets_list() { protocol_bullets_list *buf = alloc_network_message(protocol_bullets_list); |
