aboutsummaryrefslogtreecommitdiff
path: root/src/particles.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/particles.h')
-rw-r--r--src/particles.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/particles.h b/src/particles.h
index 7ffb1c728..cb16d1c07 100644
--- a/src/particles.h
+++ b/src/particles.h
@@ -20,8 +20,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef PARTICLES_HEADER
#define PARTICLES_HEADER
-#define DIGGING_PARTICLES_AMOUNT 10
-
#include <iostream>
#include "irrlichttypes_extrabloated.h"
#include "client/tile.h"
@@ -119,7 +117,7 @@ private:
class ParticleSpawner
{
- public:
+public:
ParticleSpawner(IGameDef* gamedef,
scene::ISceneManager *smgr,
LocalPlayer *player,
@@ -146,8 +144,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;
scene::ISceneManager *m_smgr;