From b9fb3cea33f495f0c9c9d7d74ed67af6aab78b04 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Mon, 2 Oct 2017 20:40:59 +0200 Subject: ParticleSpawner::step cleanup and rotation fix (#6486) * Particles: Move spawner code to a separate fucntion --- src/particles.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/particles.h') diff --git a/src/particles.h b/src/particles.h index 11ccd6218..72e48911a 100644 --- a/src/particles.h +++ b/src/particles.h @@ -114,7 +114,7 @@ private: class ParticleSpawner { - public: +public: ParticleSpawner(IGameDef* gamedef, LocalPlayer *player, u16 amount, @@ -140,8 +140,12 @@ class ParticleSpawner bool get_expired () { return (m_amount <= 0) && m_spawntime != 0; } - private: - ParticleManager* m_particlemanager; +private: + void spawnParticle(ClientEnvironment *env, float radius, + bool is_attached, const v3f &attached_pos, + float attached_yaw); + + ParticleManager *m_particlemanager; float m_time; IGameDef *m_gamedef; LocalPlayer *m_player; -- cgit v1.2.3