1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

ParticleSpawner::step cleanup and rotation fix (#6486)

* Particles: Move spawner code to a separate fucntion
This commit is contained in:
SmallJoker 2017-10-02 20:40:59 +02:00 committed by Loïc Blot
parent ee0bfbede1
commit b9fb3cea33
2 changed files with 73 additions and 112 deletions

View file

@ -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;