From 4cc21619d4b17c41e007a11187ae8689a0018f36 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Wed, 11 Nov 2015 23:28:10 +0100 Subject: [PATCH] Little int->float conversion --- BBGE/Particles.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;