diff options
author | sfan5 <sfan5@live.de> | 2020-05-22 14:17:03 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-05-23 22:52:21 +0200 |
commit | 9d6e7e48d6fb1daff8fedcb2f111164bef61f1e7 (patch) | |
tree | b4526e1feb6a2423b967ba120afd5da37d813d41 /src/network | |
parent | 15ba75e4cf1d1b8ceaa9d8ce33dcfdd7dbe80741 (diff) | |
download | minetest-9d6e7e48d6fb1daff8fedcb2f111164bef61f1e7.tar.gz minetest-9d6e7e48d6fb1daff8fedcb2f111164bef61f1e7.tar.bz2 minetest-9d6e7e48d6fb1daff8fedcb2f111164bef61f1e7.zip |
Implement spawning particles with node texture appearance
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/clientpackethandler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp index 054e60c3c..e000acc92 100644 --- a/src/network/clientpackethandler.cpp +++ b/src/network/clientpackethandler.cpp @@ -1003,6 +1003,16 @@ void Client::handleCommand_AddParticleSpawner(NetworkPacket* pkt) p.glow = readU8(is); p.object_collision = readU8(is); + // This is kinda awful + do { + u16 tmp_param0 = readU16(is); + if (is.eof()) + break; + p.node.param0 = tmp_param0; + p.node.param2 = readU8(is); + p.node_tile = readU8(is); + } while (0); + auto event = new ClientEvent(); event->type = CE_ADD_PARTICLESPAWNER; event->add_particlespawner.p = new ParticleSpawnerParameters(p); |