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

Method ModifyRailType

src/rail_gui.cpp:518–522  ·  view source on GitHub ↗

* Switch to another rail type. * @param railtype New rail type. */

Source from the content-addressed store, hash-verified

516 * @param railtype New rail type.
517 */
518 void ModifyRailType(RailType railtype)
519 {
520 this->railtype = railtype;
521 this->ReInit();
522 }
523
524 void UpdateRemoveWidgetStatus(WidgetID clicked_widget)
525 {

Callers 2

SetDefaultRailGuiFunction · 0.80

Calls 1

ReInitMethod · 0.80

Tested by

no test coverage detected