summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-21 20:10:53 +0000
committercelestar <celestar@openttd.org>2006-04-21 20:10:53 +0000
commit1e574a6afc2a79914ec50c332d7862b88e8a2393 (patch)
tree51367e2abf1cd03bf5680856f664920d4c7c4953
parentde0607fb80d2b0b08e15e5e8aec4aa2020efc77b (diff)
downloadopenttd-1e574a6afc2a79914ec50c332d7862b88e8a2393.tar.xz
(svn r4507) Just a comment
-rw-r--r--roadveh_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 4f8da89b1..7bae69524 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -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 (v->u.road.slot != NULL) return;
+ // XXX If we already have a depot order, WHY do we search over and over?
depot = FindClosestRoadDepot(v);
if (depot == NULL || DistanceManhattan(v->tile, depot->xy) > 12) {