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

Method SetVehicleType

src/story.cpp:149–153  ·  view source on GitHub ↗

Set the type of vehicles that are accepted by the button */

Source from the content-addressed store, hash-verified

147
148/** Set the type of vehicles that are accepted by the button */
149void StoryPageButtonData::SetVehicleType(VehicleType vehtype)
150{
151 assert(vehtype == VEH_INVALID || vehtype < VEH_COMPANY_END);
152 SB(this->referenced_id, 16, 8, vehtype);
153}
154
155/** Get the button background colour. */
156Colours StoryPageButtonData::GetColour() const

Callers 1

Calls 1

SBFunction · 0.85

Tested by

no test coverage detected