From e2ff8bb4537bcf46404ea4bfe9cbefbd007abf5f Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 13 Sep 2008 23:22:41 +0000 Subject: [PATCH] particle cleanup fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2573 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendergl.cpp | 2 +- source/src/renderparticles.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/rendergl.cpp b/source/src/rendergl.cpp index 8989e544..d3ae1fa6 100644 --- a/source/src/rendergl.cpp +++ b/source/src/rendergl.cpp @@ -594,7 +594,7 @@ void drawreflection(float hf, int w, int h, float changelod, bool refract) resettmu(0); - render_particles(0); + render_particles(-1); if(refract) glLoadIdentity(); glMatrixMode(GL_PROJECTION); diff --git a/source/src/renderparticles.cpp b/source/src/renderparticles.cpp index 92821e1f..5df5888e 100644 --- a/source/src/renderparticles.cpp +++ b/source/src/renderparticles.cpp @@ -464,7 +464,7 @@ void render_particles(int time, int typemask) } } - if(!time) pp = &p->next; + if(time < 0) pp = &p->next; else if(!p->fade || lastmillis-p->millis>p->fade) { *pp = p->next;