summaryrefslogtreecommitdiff
path: root/src/particlecontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-01-10 17:19:24 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-01-10 17:20:33 +0100
commitf5a394a5051384a930d635da22ccafc6beb1cb84 (patch)
treed28fc14408a6bb91170e05880b4d2af6a17fcc14 /src/particlecontainer.cpp
parent5757066312cab082378dbc5d8df97dea3fe40af0 (diff)
downloadmana-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.cpp6
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);