fix PBCN(LIGH)

This commit is contained in:
jacob1 2016-03-12 13:32:12 -05:00
parent ccec5fbff4
commit 3a76c1cadf

View File

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