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:
parent
26549f84b7
commit
4cc21619d4
1 changed files with 5 additions and 5 deletions
|
@ -184,13 +184,13 @@ protected:
|
||||||
|
|
||||||
struct ParticleInfluence
|
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)
|
: pos(pos), spd(spd), size(size), pull(pull)
|
||||||
{}
|
{}
|
||||||
ParticleInfluence() { size=0; pull=0; spd=0; }
|
ParticleInfluence() : size(0), spd(0), pull(false) {}
|
||||||
int size;
|
|
||||||
int spd;
|
|
||||||
Vector pos;
|
Vector pos;
|
||||||
|
float size;
|
||||||
|
float spd;
|
||||||
bool pull;
|
bool pull;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ protected:
|
||||||
|
|
||||||
int oldFree;
|
int oldFree;
|
||||||
|
|
||||||
typedef std::list<ParticleInfluence> Influences;
|
typedef std::vector<ParticleInfluence> Influences;
|
||||||
Influences influences;
|
Influences influences;
|
||||||
|
|
||||||
int size, used, free, halfSize;
|
int size, used, free, halfSize;
|
||||||
|
|
Loading…
Reference in a new issue