mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-12 03:14:04 +02:00
fix VIRS's part_change_type abuse, fix http://tpt.io/.260472
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user