mirror of https://github.com/OpenTTD/OpenTTD
(svn r27843) -Change: (Yapf) Consider depot as destination before reversing path and applying penalty.
parent
9a7fa689a1
commit
39fa3c7cbd
|
@ -403,6 +403,8 @@ no_entry_cost: // jump here at the beginning if the node has no parent (it is th
|
||||||
/* Penalty for reversing in a depot. */
|
/* Penalty for reversing in a depot. */
|
||||||
assert(IsRailDepot(cur.tile));
|
assert(IsRailDepot(cur.tile));
|
||||||
segment_cost += Yapf().PfGetSettings().rail_depot_reverse_penalty;
|
segment_cost += Yapf().PfGetSettings().rail_depot_reverse_penalty;
|
||||||
|
|
||||||
|
} else if (IsRailDepotTile(cur.tile)) {
|
||||||
/* We will end in this pass (depot is possible target) */
|
/* We will end in this pass (depot is possible target) */
|
||||||
end_segment_reason |= ESRB_DEPOT;
|
end_segment_reason |= ESRB_DEPOT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue