diff --git a/BBGE/Particles.h b/BBGE/Particles.h index 21b96ee..95b458d 100644 --- a/BBGE/Particles.h +++ b/BBGE/Particles.h @@ -184,13 +184,13 @@ protected: struct ParticleInfluence { - ParticleInfluence(Vector pos, int spd, int size, bool pull) + ParticleInfluence(Vector pos, float spd, float size, bool pull) : pos(pos), spd(spd), size(size), pull(pull) {} - ParticleInfluence() { size=0; pull=0; spd=0; } - int size; - int spd; + ParticleInfluence() : size(0), spd(0), pull(false) {} Vector pos; + float size; + float spd; bool pull; }; @@ -242,7 +242,7 @@ protected: int oldFree; - typedef std::list Influences; + typedef std::vector Influences; Influences influences; int size, used, free, halfSize;