Fix WTRV formed from burning firework dust

This commit is contained in:
jacksonmj 2011-04-22 00:20:06 +08:00 committed by Simon Robertshaw
parent 3bfa39ecf3
commit 3e1ff2094c

View File

@ -41,6 +41,7 @@ int update_PYRO(UPDATE_FUNC_ARGS) {
part_change_type(r>>8,x+rx,y+ry,PT_FIRE); part_change_type(r>>8,x+rx,y+ry,PT_FIRE);
parts[r>>8].temp = restrict_flt(ptypes[PT_FIRE].heat + (ptypes[rt].flammable/2), MIN_TEMP, MAX_TEMP); parts[r>>8].temp = restrict_flt(ptypes[PT_FIRE].heat + (ptypes[rt].flammable/2), MIN_TEMP, MAX_TEMP);
parts[r>>8].life = rand()%80+180; parts[r>>8].life = rand()%80+180;
parts[r>>8].tmp = parts[r>>8].ctype = 0;
if (ptypes[rt].explosive) if (ptypes[rt].explosive)
pv[y/CELL][x/CELL] += 0.25f * CFDS; pv[y/CELL][x/CELL] += 0.25f * CFDS;
continue; continue;