From 6ccb5835ff55d85156be91473c598eca9d6cb9a6 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 4 Nov 2020 16:57:41 +0100 Subject: Revert "Make Lint Happy" This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4. --- src/particles.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/particles.h') diff --git a/src/particles.h b/src/particles.h index aae460060..6f518b771 100644 --- a/src/particles.h +++ b/src/particles.h @@ -27,8 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc., // This file defines the particle-related structures that both the server and // client need. The ParticleManager and rendering is in client/particles.h -struct CommonParticleParams -{ +struct CommonParticleParams { bool collisiondetection = false; bool collision_removal = false; bool object_collision = false; @@ -39,16 +38,14 @@ struct CommonParticleParams MapNode node; u8 node_tile = 0; - CommonParticleParams() - { + CommonParticleParams() { animation.type = TAT_NONE; node.setContent(CONTENT_IGNORE); } /* This helper is useful for copying params from * ParticleSpawnerParameters to ParticleParameters */ - inline void copyCommon(CommonParticleParams &to) const - { + inline void copyCommon(CommonParticleParams &to) const { to.collisiondetection = collisiondetection; to.collision_removal = collision_removal; to.object_collision = object_collision; @@ -61,8 +58,7 @@ struct CommonParticleParams } }; -struct ParticleParameters : CommonParticleParams -{ +struct ParticleParameters : CommonParticleParams { v3f pos; v3f vel; v3f acc; @@ -73,8 +69,7 @@ struct ParticleParameters : CommonParticleParams void deSerialize(std::istream &is, u16 protocol_ver); }; -struct ParticleSpawnerParameters : CommonParticleParams -{ +struct ParticleSpawnerParameters : CommonParticleParams { u16 amount = 1; v3f minpos, maxpos, minvel, maxvel, minacc, maxacc; f32 time = 1; -- cgit v1.2.3