# HG changeset patch # User frosch # Date 2009-09-15 18:47:42 # Node ID acd808f364d59f9ad607865d3ea4bb2bc177f52d # Parent fc076d743e2f537429d69383b6422361b80bd23f (svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost. diff --git a/src/subsidy.cpp b/src/subsidy.cpp --- a/src/subsidy.cpp +++ b/src/subsidy.cpp @@ -185,7 +185,7 @@ static Subsidy *FindSubsidyPassengerRout 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();