Fix GoL deleting particle 0
This commit is contained in:
parent
6749eb1960
commit
ee100cb4f0
@ -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;
|
||||
|
Reference in New Issue
Block a user