particle cleanup fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2573 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user