mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-25 13:14:19 +01:00
Codechange: Use separate RoadTypes mask to list road or tram roadtypes.
This simplifies logic reduces ambiguity.
This commit is contained in:
committed by
Peter Nelson
parent
c105adcd96
commit
819e097d6e
@@ -130,11 +130,6 @@ bool HasRoadTypeAvail(const CompanyID company, RoadType roadtype)
|
||||
}
|
||||
}
|
||||
|
||||
static RoadTypes GetMaskForRoadTramType(RoadTramType rtt)
|
||||
{
|
||||
return rtt == RTT_TRAM ? _roadtypes_type : ~_roadtypes_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if any buildable RoadType is available for a company.
|
||||
* @param company the company in question
|
||||
|
||||
Reference in New Issue
Block a user