mirror of https://github.com/OpenTTD/OpenTTD
(svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost.
parent
142089b3f5
commit
c254021af4
|
@ -185,7 +185,7 @@ static Subsidy *FindSubsidyPassengerRoute()
|
||||||
return NULL;
|
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;
|
if (CheckSubsidyDuplicate(CT_PASSENGERS, ST_TOWN, src->index, ST_TOWN, dst->index)) return NULL;
|
||||||
|
|
||||||
Subsidy *s = new Subsidy();
|
Subsidy *s = new Subsidy();
|
||||||
|
|
Loading…
Reference in New Issue