diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2019-03-01 20:16:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-01 20:16:11 +0100 |
commit | 170dd409cbf1856600ee5089a95c096dd668b75e (patch) | |
tree | dd18026fbfe1e9c76f9081864174266109809996 /src/client/clientevent.h | |
parent | 111f1dc9c5f336f5b4f12c15940dc4cc2cbe7f82 (diff) | |
download | minetest-170dd409cbf1856600ee5089a95c096dd668b75e.tar.gz minetest-170dd409cbf1856600ee5089a95c096dd668b75e.tar.bz2 minetest-170dd409cbf1856600ee5089a95c096dd668b75e.zip |
Fix particle spawners not visible since CSM spawner implementation (#8289)
* Drop the ID mapper, use a big u64 instead. This will permit to resync server ids properly with the manager code
* Modernize some code parts (std::unordered_map, auto)
* generate id on client part on U32_MAX + 1 ids, lower are for server ids
Diffstat (limited to 'src/client/clientevent.h')
-rw-r--r-- | src/client/clientevent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/clientevent.h b/src/client/clientevent.h index 4976eb174..2a44717ce 100644 --- a/src/client/clientevent.h +++ b/src/client/clientevent.h @@ -108,7 +108,7 @@ struct ClientEvent u16 attached_id; bool vertical; std::string *texture; - u32 id; + u64 id; struct TileAnimationParams animation; u8 glow; } add_particlespawner; |