diff options
author | frosch <frosch@openttd.org> | 2009-09-15 18:47:42 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-15 18:47:42 +0000 |
commit | c254021af489bec0cc6a4707fcb0ee6724a2dc78 (patch) | |
tree | 29c59d57f738179637354eb8d7b63c062f1d31fe | |
parent | 142089b3f5d18a87d9a45447b50be0f8c6165867 (diff) | |
download | openttd-c254021af489bec0cc6a4707fcb0ee6724a2dc78.tar.xz |
(svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost.
-rw-r--r-- | src/subsidy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |