diff options
author | raymoo <uguu@installgentoo.com> | 2016-08-04 13:09:21 -0700 |
---|---|---|
committer | Ner'zhul <nerzhul@users.noreply.github.com> | 2016-10-13 17:33:16 +0200 |
commit | c9e7a27eeb628be78a835abadf8afe1177eb90c5 (patch) | |
tree | 119a8747a0d33f69f5e14c6a563f3e9df673f923 /src/network | |
parent | 0b27a70b294590d7fb2bb25bf2d207a719ce8d98 (diff) | |
download | minetest-c9e7a27eeb628be78a835abadf8afe1177eb90c5.tar.gz minetest-c9e7a27eeb628be78a835abadf8afe1177eb90c5.tar.bz2 minetest-c9e7a27eeb628be78a835abadf8afe1177eb90c5.zip |
Attached particle spawners
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/clientpackethandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp index b39356e92..090741f9f 100644 --- a/src/network/clientpackethandler.cpp +++ b/src/network/clientpackethandler.cpp @@ -944,9 +944,11 @@ void Client::handleCommand_AddParticleSpawner(NetworkPacket* pkt) bool vertical = false; bool collision_removal = false; + u16 attached_id = 0; try { *pkt >> vertical; *pkt >> collision_removal; + *pkt >> attached_id; } catch (...) {} @@ -966,6 +968,7 @@ void Client::handleCommand_AddParticleSpawner(NetworkPacket* pkt) event.add_particlespawner.maxsize = maxsize; event.add_particlespawner.collisiondetection = collisiondetection; event.add_particlespawner.collision_removal = collision_removal; + event.add_particlespawner.attached_id = attached_id; event.add_particlespawner.vertical = vertical; event.add_particlespawner.texture = new std::string(texture); event.add_particlespawner.id = id; |