(svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost.

This commit is contained in:
frosch 2009-09-15 18:47:42 +00:00
parent 142089b3f5
commit c254021af4
1 changed files with 1 additions and 1 deletions

View File

@ -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();