#include
int update_SOAP(UPDATE_FUNC_ARGS) {
int r, rx, ry;
for (rx=-1; rx<2; rx++)<br /> for (ry=-1; ry<2; ry++)<br /> if (x+rx>=0 && y+ry>0 && x+rx {
if ((r&0xFF)==PT_OIL && 15>(rand()%1000))
part_change_type(r>>8,x+rx,y+ry,PT_SUDS);
}
}
int r, rx, ry;
line.