MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetOverlayCompanyMask

Method GetOverlayCompanyMask

src/smallmap_gui.cpp:727–730  ·  view source on GitHub ↗

* Get a bitmask for company links to be displayed. Usually this will be * the _local_company. Spectators get to see all companies' links. * @return Company mask. */

Source from the content-addressed store, hash-verified

725 * @return Company mask.
726 */
727 inline CompanyMask GetOverlayCompanyMask() const
728 {
729 return Company::IsValidID(_local_company) ? CompanyMask{}.Set(_local_company) : CompanyMask{}.Set();
730 }
731
732 /** Blink the industries (if selected) on a regular interval. */
733 const IntervalTimer<TimerWindow> blink_interval = {TIMER_BLINK_INTERVAL, [this](auto) {

Callers 2

UpdateLinksMethod · 0.95
SmallMapWindowMethod · 0.95

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected