This commit is contained in:
Leijurv 2018-08-12 07:58:22 -07:00
parent b61863661f
commit 524a32375d
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -99,7 +99,7 @@ public class MovementDiagonal extends Movement {
} }
double multiplier = 1; double multiplier = 1;
if (optionA != 0 || optionB != 0) { if (optionA != 0 || optionB != 0) {
multiplier = 1.5; // TODO tune multiplier = SQRT_2 - 0.001; // TODO tune
} }
return multiplier * SQRT_2 * (BlockStateInterface.isWater(src) || BlockStateInterface.isWater(dest) ? WALK_ONE_IN_WATER_COST : WALK_ONE_BLOCK_COST); return multiplier * SQRT_2 * (BlockStateInterface.isWater(src) || BlockStateInterface.isWater(dest) ? WALK_ONE_IN_WATER_COST : WALK_ONE_BLOCK_COST);
} }