(svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost.
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user