Skip to content
Merged
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
2 changes: 1 addition & 1 deletion simconvoi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ bool convoi_t::drive_to()
// Cache-aware route calculation: tries cache first, falls back to A* on miss or passability failure.
// Only convoys assigned to a line use the cache, and only when the convoy's schedule
// exactly matches the line's schedule (no extra depot entries).
const bool use_route_cache = line.is_bound() && schedule->get_count() == line->get_schedule()->get_count();
const bool use_route_cache = front()->get_waytype()!=air_wt && line.is_bound() && schedule->get_count() == line->get_schedule()->get_count();
auto cached_calc_route = [&](koord3d s, koord3d z, route_t* r, bool pass_stop) -> bool {
if (use_route_cache) {
const uint8 entry_idx = schedule->get_current_stop();
Expand Down
Loading