mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 16:39:09 +00:00
Codechange: Simplify IsCompanyBuildableVehicleType. (#12868)
This commit is contained in:
@@ -90,15 +90,7 @@ Direction GetDirectionTowards(const Vehicle *v, int x, int y);
|
||||
*/
|
||||
inline bool IsCompanyBuildableVehicleType(VehicleType type)
|
||||
{
|
||||
switch (type) {
|
||||
case VEH_TRAIN:
|
||||
case VEH_ROAD:
|
||||
case VEH_SHIP:
|
||||
case VEH_AIRCRAFT:
|
||||
return true;
|
||||
|
||||
default: return false;
|
||||
}
|
||||
return type < VEH_COMPANY_END;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user