Fix stasis walls not keeping dying GOL cells in stasis

This commit is contained in:
Tamás Bálint Misius 2020-09-22 19:43:01 +02:00
parent efd2b41980
commit 88fd676cd2
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -4715,12 +4715,15 @@ void Simulation::SimulateGoL()
} }
} }
else else
{
if (!(bmap[ny/CELL][nx/CELL] == WL_STASIS && emap[ny/CELL][nx/CELL] < 8))
{ {
parts[ID(r)].tmp --; parts[ID(r)].tmp --;
} }
} }
} }
} }
}
for (int ny = CELL; ny < YRES-CELL; ny++) for (int ny = CELL; ny < YRES-CELL; ny++)
{ {
//go through every particle again, but check neighbor map, then update particles //go through every particle again, but check neighbor map, then update particles