Codechange: Make SpriteType, CargoSortType, SourceType and ScriptType enum classes. (#10663)
This avoids a (soft) namespace conflict between the four ST_* enums.
This commit is contained in:
@@ -23,8 +23,8 @@ struct Subsidy : SubsidyPool::PoolItem<&_subsidy_pool> {
|
||||
CargoID cargo_type; ///< Cargo type involved in this subsidy, CT_INVALID for invalid subsidy
|
||||
uint16 remaining; ///< Remaining months when this subsidy is valid
|
||||
CompanyID awarded; ///< Subsidy is awarded to this company; INVALID_COMPANY if it's not awarded to anyone
|
||||
SourceType src_type; ///< Source of subsidised path (ST_INDUSTRY or ST_TOWN)
|
||||
SourceType dst_type; ///< Destination of subsidised path (ST_INDUSTRY or ST_TOWN)
|
||||
SourceType src_type; ///< Source of subsidised path (SourceType::Industry or SourceType::Town)
|
||||
SourceType dst_type; ///< Destination of subsidised path (SourceType::Industry or SourceType::Town)
|
||||
SourceID src; ///< Index of source. Either TownID or IndustryID
|
||||
SourceID dst; ///< Index of destination. Either TownID or IndustryID
|
||||
|
||||
|
Reference in New Issue
Block a user