mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
ParticleSpawner::step cleanup and rotation fix (#6486)
* Particles: Move spawner code to a separate fucntion
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user