diff --git a/include/central64/grid/PathCost.hpp b/include/central64/grid/PathCost.hpp index 21fca0c..f9381f6 100644 --- a/include/central64/grid/PathCost.hpp +++ b/include/central64/grid/PathCost.hpp @@ -62,10 +62,9 @@ constexpr PathCost::PathCost(double distance) } constexpr PathCost::PathCost(int64_t multiplier, int) - : multiplier_{ (multiplier >= 0) ? (multiplier >= max) ? max : - int64_t(multiplier + 0.5) : - (multiplier <= -max) ? -max : - -int64_t(-multiplier + 0.5) } + : multiplier_{ (multiplier >= max) ? max : + (multiplier <= -max) ? -max : + multiplier } { }