misc cleanup 3

This commit is contained in:
Leijurv
2018-09-16 17:49:19 -07:00
parent e75d0ff102
commit af58304b38
16 changed files with 47 additions and 57 deletions
@@ -72,10 +72,7 @@ public abstract class Movement implements Helper, MovementHelper {
public double getCost(CalculationContext context) {
if (cost == null) {
if (context == null) {
context = new CalculationContext();
}
cost = calculateCost(context);
cost = calculateCost(context != null ? context : new CalculationContext());
}
return cost;
}