From c254021af489bec0cc6a4707fcb0ee6724a2dc78 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 15 Sep 2009 18:47:42 +0000 Subject: (svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost. --- src/subsidy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/subsidy.cpp b/src/subsidy.cpp index 634c83d9a..0a07f723a 100644 --- a/src/subsidy.cpp +++ b/src/subsidy.cpp @@ -185,7 +185,7 @@ static Subsidy *FindSubsidyPassengerRoute() return NULL; } - if (DistanceManhattan(src->xy, src->xy) > SUBSIDY_MAX_DISTANCE) return NULL; + if (DistanceManhattan(src->xy, dst->xy) > SUBSIDY_MAX_DISTANCE) return NULL; if (CheckSubsidyDuplicate(CT_PASSENGERS, ST_TOWN, src->index, ST_TOWN, dst->index)) return NULL; Subsidy *s = new Subsidy(); -- cgit v1.2.3-54-g00ecf