fix VIRS's part_change_type abuse, fix http://tpt.io/.260472

This commit is contained in:
mniip 2013-12-25 16:07:18 +04:00
parent 7fdc4dc83b
commit 3e3fe1af73

View File

@ -131,11 +131,11 @@ int Element_VIRS::update(UPDATE_FUNC_ARGS)
else else
parts[r>>8].pavg[1] = 0; parts[r>>8].pavg[1] = 0;
if (parts[r>>8].temp < 305.0f) if (parts[r>>8].temp < 305.0f)
sim->part_change_type(r>>8,x,y,PT_VRSS); sim->part_change_type(r>>8, x+rx, y+ry, PT_VRSS);
else if (parts[r>>8].temp > 673.0f) else if (parts[r>>8].temp > 673.0f)
sim->part_change_type(r>>8,x,y,PT_VRSG); sim->part_change_type(r>>8, x+rx, y+ry, PT_VRSG);
else else
sim->part_change_type(r>>8,x,y,PT_VIRS); sim->part_change_type(r>>8, x+rx, y+ry, PT_VIRS);
} }
rndstore = rndstore >> 5; rndstore = rndstore >> 5;
} }