mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 03:39:57 +02:00
gol2 not resetting properly
Causes life to malfunction severely in some cases
This commit is contained in:
@@ -1350,12 +1350,10 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
if (r && 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
|
parts[r>>8].type = PT_NONE;//using kill_part makes it not work
|
||||||
}
|
}
|
||||||
gol2[nx][ny][0] = 0;
|
|
||||||
for ( z = 1; z<=NGOL; z++)
|
|
||||||
gol2[nx][ny][z] = 0;
|
|
||||||
}
|
}
|
||||||
if (createdsomething)
|
if (createdsomething)
|
||||||
GENERATION ++;
|
GENERATION ++;
|
||||||
|
memset(gol2, 0, sizeof(gol2));
|
||||||
}
|
}
|
||||||
if (ISWIRE==1)
|
if (ISWIRE==1)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user