Codechange: Split CT_INVALID into CT_INVALID and INVALID_CARGO.
INVALID_CARGO is a CargoID and should be used for most purposes in game. CT_INVALID is a CargoType used for defining default properties.
This commit is contained in:
committed by
Peter Nelson
parent
4fd986bd07
commit
952d111b94
@@ -20,7 +20,7 @@ extern SubsidyPool _subsidy_pool;
|
||||
|
||||
/** Struct about subsidies, offered and awarded */
|
||||
struct Subsidy : SubsidyPool::PoolItem<&_subsidy_pool> {
|
||||
CargoID cargo_type; ///< Cargo type involved in this subsidy, CT_INVALID for invalid subsidy
|
||||
CargoID cargo_type; ///< Cargo type involved in this subsidy, INVALID_CARGO for invalid subsidy
|
||||
uint16_t 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 (SourceType::Industry or SourceType::Town)
|
||||
|
||||
Reference in New Issue
Block a user