1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

Little int->float conversion

This commit is contained in:
fgenesis 2015-11-11 23:28:10 +01:00
parent 26549f84b7
commit 4cc21619d4

View file

@ -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<ParticleInfluence> Influences;
typedef std::vector<ParticleInfluence> Influences;
Influences influences;
int size, used, free, halfSize;