(svn r4507) Just a comment
This commit is contained in:
@@ -1564,6 +1564,7 @@ static void CheckIfRoadVehNeedsService(Vehicle *v)
|
|||||||
// If we already got a slot at a stop, use that FIRST, and go to a depot later
|
// If we already got a slot at a stop, use that FIRST, and go to a depot later
|
||||||
if (v->u.road.slot != NULL) return;
|
if (v->u.road.slot != NULL) return;
|
||||||
|
|
||||||
|
// XXX If we already have a depot order, WHY do we search over and over?
|
||||||
depot = FindClosestRoadDepot(v);
|
depot = FindClosestRoadDepot(v);
|
||||||
|
|
||||||
if (depot == NULL || DistanceManhattan(v->tile, depot->xy) > 12) {
|
if (depot == NULL || DistanceManhattan(v->tile, depot->xy) > 12) {
|
||||||
|
Reference in New Issue
Block a user