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

Method IsCompatible

src/newgrf_config.cpp:66–69  ·  view source on GitHub ↗

* Return whether this NewGRF can replace an older version of the same NewGRF. */

Source from the content-addressed store, hash-verified

64 * Return whether this NewGRF can replace an older version of the same NewGRF.
65 */
66bool GRFConfig::IsCompatible(uint32_t old_version) const
67{
68 return this->min_loadable_version <= old_version && old_version <= this->version;
69}
70
71/**
72 * Copy the parameter information from the \a src config.

Callers 4

openttd_mainFunction · 0.80
UpgradeCurrentMethod · 0.80
CopyCompatibleConfigMethod · 0.80
FindGRFConfigFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected