Skip to content

Commit

Permalink
Removed minTemp for constant check.
Browse files Browse the repository at this point in the history
  • Loading branch information
pheonixstorm committed Jul 12, 2023
1 parent 9bbd484 commit 85244c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions megamek/src/megamek/common/MoveStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -3019,9 +3019,8 @@ && getEntity().getPosition().equals(prev)
}

// Be careful on pavement during cold weather, there may be black ice.
int minTemp = -30;
boolean useBlackIce = game.getOptions().booleanOption(OptionsConstants.ADVANCED_BLACK_ICE);
boolean goodTemp = game.getPlanetaryConditions().getTemperature() <= minTemp;
boolean goodTemp = game.getPlanetaryConditions().getTemperature() <= PlanetaryConditions.BLACK_ICE_TEMP;
boolean goodWeather = game.getPlanetaryConditions().getWeather() == PlanetaryConditions.WE_ICE_STORM;

if (isPavementStep && ((useBlackIce && goodTemp) || goodWeather)) {
Expand Down

0 comments on commit 85244c2

Please sign in to comment.