diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-01-10 17:19:24 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-01-10 17:20:33 +0100 |
commit | f5a394a5051384a930d635da22ccafc6beb1cb84 (patch) | |
tree | d28fc14408a6bb91170e05880b4d2af6a17fcc14 /src/particlecontainer.cpp | |
parent | 5757066312cab082378dbc5d8df97dea3fe40af0 (diff) | |
download | mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.gz mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.bz2 mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.xz mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.zip |
Change code style
Diffstat (limited to 'src/particlecontainer.cpp')
-rw-r--r-- | src/particlecontainer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/particlecontainer.cpp b/src/particlecontainer.cpp index 63f89079..67f82b0b 100644 --- a/src/particlecontainer.cpp +++ b/src/particlecontainer.cpp @@ -75,7 +75,8 @@ void ParticleList::removeLocally(Particle *particle) for (std::list<Particle *>::iterator it = mElements.begin(); it != mElements.end(); it++) { - if (*it == particle) { + if (*it == particle) + { (*it)->kill(); mElements.erase(it); } @@ -158,7 +159,8 @@ void ParticleVector::moveTo(float x, float y) ParticleContainer::moveTo(x, y); for (std::vector<Particle *>::iterator it = mIndexedElements.begin(); - it != mIndexedElements.end(); it++) { + it != mIndexedElements.end(); it++) + { if (*it) { (*it)->moveTo(x, y); |