CRAY(LIGH) defaults to LIGH with .life 30

This commit is contained in:
jacob1 2017-05-06 19:40:22 -04:00
parent cdc8f64896
commit 9b954c7ed5

View File

@ -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;