Skip to content

Commit

Permalink
CRAY(LIGH) defaults to LIGH with .life 30
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed May 6, 2017
1 parent cdc8f64 commit 9b954c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/simulation/Simulation.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 9b954c7

Please sign in to comment.