Lines 228-234
Link Here
|
228 |
void ParticleEngine::Refresh() |
228 |
void ParticleEngine::Refresh() |
229 |
{ |
229 |
{ |
230 |
// remove old particles |
230 |
// remove old particles |
231 |
std::list<Particle *>::iterator it=particles.begin(), end=particles.end(), current=NULL; |
231 |
std::list<Particle *>::iterator it=particles.begin(), end=particles.end(), current; |
232 |
while (it != end) { |
232 |
while (it != end) { |
233 |
current = it; |
233 |
current = it; |
234 |
++it; |
234 |
++it; |
Lines 307-313
Link Here
|
307 |
|
307 |
|
308 |
void ParticleEngine::Draw() |
308 |
void ParticleEngine::Draw() |
309 |
{ |
309 |
{ |
310 |
std::list<Particle *>::iterator it=NULL; |
310 |
std::list<Particle *>::iterator it; |
311 |
// draw the particles |
311 |
// draw the particles |
312 |
for(it=particles.begin(); it!=particles.end(); ++it) { |
312 |
for(it=particles.begin(); it!=particles.end(); ++it) { |
313 |
(*it)->Draw(); |
313 |
(*it)->Draw(); |
Lines 320-326
Link Here
|
320 |
void ParticleEngine::Stop() |
320 |
void ParticleEngine::Stop() |
321 |
{ |
321 |
{ |
322 |
// remove all the particles |
322 |
// remove all the particles |
323 |
std::list<Particle *>::iterator it=particles.begin(), end=particles.end(), current=NULL; |
323 |
std::list<Particle *>::iterator it=particles.begin(), end=particles.end(), current; |
324 |
while (it != end) { |
324 |
while (it != end) { |
325 |
current = it; |
325 |
current = it; |
326 |
++it; |
326 |
++it; |