diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-15 01:07:47 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-15 02:05:50 +0200 |
commit | e2150d04662a4ba8b5304dabcc74be0bacded5b7 (patch) | |
tree | cbeb05c2f056a7d5ac4a08e7b80799b5cfd4785b /src/particle.cpp | |
parent | edda37acb9d66f2751ef712c83dced62428fa685 (diff) | |
download | manaverse-e2150d04662a4ba8b5304dabcc74be0bacded5b7.tar.gz manaverse-e2150d04662a4ba8b5304dabcc74be0bacded5b7.tar.bz2 manaverse-e2150d04662a4ba8b5304dabcc74be0bacded5b7.tar.xz manaverse-e2150d04662a4ba8b5304dabcc74be0bacded5b7.zip |
Fix code style, apply some fixes after checking with cppcheck from git.
Diffstat (limited to 'src/particle.cpp')
-rw-r--r-- | src/particle.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/particle.cpp b/src/particle.cpp index 30ed7ea89..d8b6166a1 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -197,11 +197,11 @@ bool Particle::update() if ((mLifetimePast - 1) % Particle::emitterSkip == 0) { for (EmitterIterator e = mChildEmitters.begin(); - e != mChildEmitters.end(); e++) + e != mChildEmitters.end(); ++e) { Particles newParticles = (*e)->createParticles(mLifetimePast); for (ParticleIterator p = newParticles.begin(); - p != newParticles.end(); p++) + p != newParticles.end(); ++p) { (*p)->moveBy(mPos); mChildParticles.push_back (*p); @@ -237,7 +237,7 @@ bool Particle::update() //update particle if ((*p)->update()) { - p++; + ++p; } else { @@ -255,7 +255,7 @@ void Particle::moveBy(const Vector &change) { mPos += change; for (ParticleIterator p = mChildParticles.begin(); - p != mChildParticles.end(); p++) + p != mChildParticles.end(); ++p) { if ((*p)->doesFollow()) (*p)->moveBy(change); @@ -433,7 +433,7 @@ void Particle::adjustEmitterSize(int w, int h) if (mAllowSizeAdjust) { for (EmitterIterator e = mChildEmitters.begin(); - e != mChildEmitters.end(); e++) + e != mChildEmitters.end(); ++e) { (*e)->adjustSize(w, h); } |