Permalink
Browse files

fix PBCN(LIGH)

  • Loading branch information...
jacob1 committed Mar 12, 2016
1 parent ccec5fb commit 3a76c1cadf18373aa0c9c6ef2ed89e197f3f8b2d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simulation/elements/PBCN.cpp
@@ -134,7 +134,7 @@ int Element_PBCN::update(UPDATE_FUNC_ARGS)
else if (parts[i].ctype!=PT_LIGH || !(rand()%30))
{
int np = sim->create_part(-1, x+rand()%3-1, y+rand()%3-1, parts[i].ctype&0xFF, parts[i].ctype>>8);
int np = sim->create_part(-1, x+rand()%3-1, y+rand()%3-1, parts[i].ctype&0xFF);
if (np>-1)
{
if (parts[i].ctype==PT_LAVA && parts[i].tmp>0 && parts[i].tmp<PT_NUM && sim->elements[parts[i].tmp].HighTemperatureTransition==PT_LAVA)

0 comments on commit 3a76c1c

Please sign in to comment.