From 9b954c7ed5cfa17f03ec49930a1687046a8434ff Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 6 May 2017 19:40:22 -0400 Subject: [PATCH] CRAY(LIGH) defaults to LIGH with .life 30 --- src/simulation/Simulation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 1aa70709df..d64133ba40 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -2987,6 +2987,8 @@ int Simulation::create_part(int p, int x, int y, int t, int v) parts[pmap[y][x]>>8].ctype = t; if (t == PT_LIFE && v >= 0 && v < NGOL) parts[pmap[y][x]>>8].ctype |= v<<8; + if (t == PT_LIGH) + parts[pmap[y][x]>>8].ctype |= 30<<8; parts[pmap[y][x]>>8].temp = elements[t].Temperature; } return -1;