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
commit78f95ecdebd6738cce2467aeb5c3453bedfa838d (patch)
tree51367e2abf1cd03bf5680856f664920d4c7c4953
parentdd3a3adbbd77cf1839eb45af6b8a33662276f53a (diff)
downloadopenttd-78f95ecdebd6738cce2467aeb5c3453bedfa838d.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) {