mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +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);
|
||||
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;
|
||||
}
|
||||
else
|
||||
{
|
||||
self.temp = 2000.f + storedEnergy * 10;
|
||||
self.temp = restrict_flt(2000.f + storedEnergy * 10, MIN_TEMP, MAX_TEMP);
|
||||
self.ctype = PT_GLAS;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user