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

Method WasEverAvailable

src/newgrf_object.cpp:88–91  ·  view source on GitHub ↗

* Check whether the object was available at some point in the past or present in this game with the current game mode. * @return true if it was ever or is available. */

Source from the content-addressed store, hash-verified

86 * @return true if it was ever or is available.
87 */
88bool ObjectSpec::WasEverAvailable() const
89{
90 return this->IsEverAvailable() && TimerGameCalendar::date > this->introduction_date;
91}
92
93/**
94 * Check whether the object is available at this time.

Callers 3

IsAvailableMethod · 0.95
CmdBuildObjectFunction · 0.80
GenerateObjectsFunction · 0.80

Calls 1

IsEverAvailableMethod · 0.95

Tested by

no test coverage detected