mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 11:19:51 +02:00
Fix LITH breaking temperature limits.
This commit is contained in:
@@ -233,12 +233,12 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
sim->part_change_type(i, x, y, PT_LAVA);
|
sim->part_change_type(i, x, y, PT_LAVA);
|
||||||
if (carbonationFactor < 3)
|
if (carbonationFactor < 3)
|
||||||
{
|
{
|
||||||
self.temp = 500.f + storedEnergy * 10;
|
self.temp = restrict_flt(500.f + storedEnergy * 10, MIN_TEMP, MAX_TEMP);
|
||||||
self.ctype = PT_LITH;
|
self.ctype = PT_LITH;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
self.temp = 2000.f + storedEnergy * 10;
|
self.temp = restrict_flt(2000.f + storedEnergy * 10, MIN_TEMP, MAX_TEMP);
|
||||||
self.ctype = PT_GLAS;
|
self.ctype = PT_GLAS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user