Fix H2+O2 Plasma that doesn't make water

This commit is contained in:
Simon Robertshaw 2011-10-28 21:53:21 +01:00
parent eab192c605
commit ed75259f54

View File

@ -23,6 +23,15 @@ int update_PYRO(UPDATE_FUNC_ARGS) {
parts[i].life = rand()%20+250;
}
}
if(t==PT_PLSM && parts[i].life <=1)
{
if (parts[i].tmp==3){
t = PT_DSTW;
part_change_type(i,x,y,t);
parts[i].life = 0;
parts[i].ctype = PT_FIRE;
}
}
for (rx=-2; rx<3; rx++)
for (ry=-2; ry<3; ry++)
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))