libpsys
diff src/psys.c @ 8:a10f19674147
ha!
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Tue, 27 Sep 2011 21:47:27 +0300 |
parents | 3c0a306c5f01 |
children | 9c24273f211b |
line diff
1.1 --- a/src/psys.c Tue Sep 27 07:52:01 2011 +0300 1.2 +++ b/src/psys.c Tue Sep 27 21:47:27 2011 +0300 1.3 @@ -173,7 +173,7 @@ 1.4 spawn_dt = dt / (float)spawn_count; 1.5 spawn_tm = em->last_update; 1.6 for(i=0; i<spawn_count; i++) { 1.7 - if(em->pcount >= em->attr.max_particles) { 1.8 + if(em->attr.max_particles >= 0 && em->pcount >= em->attr.max_particles) { 1.9 break; 1.10 } 1.11