diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-04-22 09:10:04 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-29 17:40:22 +0100 |
commit | 5b34c8019f135afd9f20d043a489ab96f286038a (patch) | |
tree | 84b38701d78f2348ad1e54c5cb379fc15bdcfe67 /src/engine_base.h | |
parent | fcf06ba4c43bb9b7ac0b8541377a5240b3e01126 (diff) | |
download | openttd-5b34c8019f135afd9f20d043a489ab96f286038a.tar.xz |
Codechange: Remove Company/OwnerByte types
Diffstat (limited to 'src/engine_base.h')
-rw-r--r-- | src/engine_base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine_base.h b/src/engine_base.h index 32c5c9bf6..a8dbb873c 100644 --- a/src/engine_base.h +++ b/src/engine_base.h @@ -34,7 +34,7 @@ struct Engine : EnginePool::PoolItem<&_engine_pool> { uint16 duration_phase_3; ///< Third reliability phase on months, decaying to #reliability_final. byte flags; ///< Flags of the engine. @see EngineFlags CompanyMask preview_asked; ///< Bit for each company which has already been offered a preview. - CompanyByte preview_company;///< Company which is currently being offered a preview \c INVALID_COMPANY means no company. + CompanyID preview_company; ///< Company which is currently being offered a preview \c INVALID_COMPANY means no company. byte preview_wait; ///< Daily countdown timer for timeout of offering the engine to the #preview_company company. CompanyMask company_avail; ///< Bit for each company whether the engine is available for that company. CompanyMask company_hidden; ///< Bit for each company whether the engine is normally hidden in the build gui for that company. @@ -118,7 +118,7 @@ struct Engine : EnginePool::PoolItem<&_engine_pool> { * @param c Company to check. * @return \c true iff the engine is hidden in the GUI for the given company. */ - inline bool IsHidden(CompanyByte c) const + inline bool IsHidden(CompanyID c) const { return c < MAX_COMPANIES && HasBit(this->company_hidden, c); } |