Fix GoL deleting particle 0

This commit is contained in:
jacksonmj 2011-02-07 15:24:08 +00:00
parent 6749eb1960
commit ee100cb4f0

View File

@ -1347,7 +1347,7 @@ void update_particles_i(pixel *vid, int start, int inc)
if(parts[r>>8].tmp==grule[golnum][9]-1)
parts[r>>8].tmp --;
}
if(parts[r>>8].tmp<=0)
if (r && parts[r>>8].tmp<=0)
parts[r>>8].type = PT_NONE;//using kill_part makes it not work
}
gol2[nx][ny][0] = 0;