mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-02 14:37:32 +02:00
Salt should only melt ice that is above saltwater freezing temperature
This commit is contained in:
@@ -28,7 +28,7 @@ int update_ICEI(UPDATE_FUNC_ARGS) { //currently used for snow as well
|
|||||||
r = pmap[y+ry][x+rx];
|
r = pmap[y+ry][x+rx];
|
||||||
if (!r)
|
if (!r)
|
||||||
continue;
|
continue;
|
||||||
if (((r&0xFF)==PT_SALT || (r&0xFF)==PT_SLTW) && 1>(rand()%1000))
|
if (((r&0xFF)==PT_SALT || (r&0xFF)==PT_SLTW) && parts[i].temp > ptransitions[PT_SLTW].tlv && 1>(rand()%1000))
|
||||||
{
|
{
|
||||||
part_change_type(i,x,y,PT_SLTW);
|
part_change_type(i,x,y,PT_SLTW);
|
||||||
part_change_type(r>>8,x+rx,y+ry,PT_SLTW);
|
part_change_type(r>>8,x+rx,y+ry,PT_SLTW);
|
||||||
|
Reference in New Issue
Block a user