From 88fd676cd2106d392a6a34d5abdfc3f8c5feeb51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Tue, 22 Sep 2020 19:43:01 +0200 Subject: [PATCH] Fix stasis walls not keeping dying GOL cells in stasis --- src/simulation/Simulation.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 56676711c..336f6c15d 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -4716,7 +4716,10 @@ void Simulation::SimulateGoL() } else { - parts[ID(r)].tmp --; + if (!(bmap[ny/CELL][nx/CELL] == WL_STASIS && emap[ny/CELL][nx/CELL] < 8)) + { + parts[ID(r)].tmp --; + } } } }