mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost.
This commit is contained in:
parent
142089b3f5
commit
c254021af4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user