Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/jps/jump/jump_point_offline.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ struct jump_point_table
static consteval length
chain_stride() noexcept
{
constexpr length acv = std::abs(static_cast<length>(chain_value()));
length acv = static_cast<length>(chain_value());
acv = acv >= 0 ? acv : -acv;
return acv - 2; // direct jump max at chain_stride()+1, but chain only
// chain_stride() as we must never reach 0
}
Expand Down
4 changes: 2 additions & 2 deletions include/jps/jump/jump_point_online.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class jump_point_online
rotate_grid map_;
};

void
inline void
jump_point_online::set_map(const rotate_grid& orig)
{
map_ = orig;
Expand Down Expand Up @@ -238,7 +238,7 @@ jump_point_online::jump_intercardinal_many(
return {results_count, walk_count};
}

std::pair<jump_distance, jump_distance>
inline std::pair<jump_distance, jump_distance>
jump_point_online::jump_target(
domain::grid_pair_id node_id, point loc, point target)
{
Expand Down