From f5a394a5051384a930d635da22ccafc6beb1cb84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Jan 2010 17:19:24 +0200 Subject: Change code style --- src/particlecontainer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/particlecontainer.cpp') 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::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::iterator it = mIndexedElements.begin(); - it != mIndexedElements.end(); it++) { + it != mIndexedElements.end(); it++) + { if (*it) { (*it)->moveTo(x, y); -- cgit v1.2.3-70-g09d2