follow-up on 0cda801: also clamp against negative paddings bringing goals below 0
This commit is contained in:
@@ -214,8 +214,8 @@ public class HeatActionSolver
|
|||||||
// adding 2.4s/8ticks worth of padding so preform doesn't decay out of range
|
// adding 2.4s/8ticks worth of padding so preform doesn't decay out of range
|
||||||
// average distance from lava+waterfall around 8 ticks
|
// average distance from lava+waterfall around 8 ticks
|
||||||
// preform decays 1 heat every 2 ticks
|
// preform decays 1 heat every 2 ticks
|
||||||
final int min = Math.min(1000, range[0] + padding);
|
final int min = Math.max(0, Math.min(1000, range[0] + padding));
|
||||||
final int max = Math.min(1000, range[1] + padding);
|
final int max = Math.max(0, Math.min(1000, range[1] + padding));
|
||||||
|
|
||||||
final int actionsLeft_DeltaHeat = actionLeftInStage * stage.getHeatChange();
|
final int actionsLeft_DeltaHeat = actionLeftInStage * stage.getHeatChange();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user