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

Method GetSubstituteID

src/newgrf_commons.cpp:150–153  ·  view source on GitHub ↗

* Gives the substitute of the entity, as specified by the grf file * @param entity_id of the entity being queried * @return mapped id */

Source from the content-addressed store, hash-verified

148 * @return mapped id
149 */
150uint16_t OverrideManagerBase::GetSubstituteID(uint16_t entity_id) const
151{
152 return this->mappings[entity_id].substitute_id;
153}
154
155/**
156 * Install the specs into the HouseSpecs array

Callers 2

GetMethod · 0.80
UpdateHousesAndTownsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected