From bd3011959a936f3b1f6e8cbe744529ea6c171182 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 5 Jan 2013 19:34:51 -0500 Subject: [PATCH] fix GOL detection with DTEC --- src/simulation/elements/DTEC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/DTEC.cpp b/src/simulation/elements/DTEC.cpp index 803e413d6..3fec02345 100644 --- a/src/simulation/elements/DTEC.cpp +++ b/src/simulation/elements/DTEC.cpp @@ -82,7 +82,7 @@ int Element_DTEC::update(UPDATE_FUNC_ARGS) r = sim->photons[y+ry][x+rx]; if(!r) continue; - if (parts[r>>8].type == parts[i].ctype && (parts[i].ctype != PT_LIFE || parts[i].tmp == parts[r>>8].tmp)) + if (parts[r>>8].type == parts[i].ctype && (parts[i].ctype != PT_LIFE || parts[i].tmp == parts[r>>8].ctype || !parts[i].tmp)) parts[i].life = 1; } return 0;