mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 01:33:49 +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
|
||||
{
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue