Skip to content

Commit

Permalink
fix PBCN(LIGH)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Mar 12, 2016
1 parent ccec5fb commit 3a76c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/elements/PBCN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3a76c1c

Please sign in to comment.