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

Method ModifyRoadType

src/road_gui.cpp:435–439  ·  view source on GitHub ↗

* Switch to another road type. * @param roadtype New road type. */

Source from the content-addressed store, hash-verified

433 * @param roadtype New road type.
434 */
435 void ModifyRoadType(RoadType roadtype)
436 {
437 this->roadtype = roadtype;
438 this->ReInit();
439 }
440
441 std::string GetWidgetString(WidgetID widget, StringID stringid) const override
442 {

Callers 1

InitializeRoadGUIFunction · 0.80

Calls 1

ReInitMethod · 0.80

Tested by

no test coverage detected