diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-06 00:34:51 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-06 00:34:51 (GMT) |
| commit | bd3011959a936f3b1f6e8cbe744529ea6c171182 (patch) | |
| tree | 9f72c101f352ff40920ae43711f3b34d5077a014 /src/simulation/elements/DTEC.cpp | |
| parent | bce28b83b83f37f8c774e35b85508673627c6447 (diff) | |
| download | powder-bd3011959a936f3b1f6e8cbe744529ea6c171182.zip powder-bd3011959a936f3b1f6e8cbe744529ea6c171182.tar.gz | |
fix GOL detection with DTEC
Diffstat (limited to 'src/simulation/elements/DTEC.cpp')
| -rw-r--r-- | src/simulation/elements/DTEC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/DTEC.cpp b/src/simulation/elements/DTEC.cpp index 803e413..3fec023 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; |
