This commit is contained in:
Leijurv 2018-08-11 21:36:54 -07:00
parent f8d1675973
commit b61863661f
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; multiplier = 1.5; // 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);
} }