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

Function CcFoundRandomTown

src/town_gui.cpp:1066–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1064}
1065
1066void CcFoundRandomTown(Commands, const CommandCost &result, Money, TownID town_id)
1067{
1068 if (result.Succeeded()) ScrollMainWindowToTile(Town::Get(town_id)->xy);
1069}
1070
1071static constexpr std::initializer_list<NWidgetPart> _nested_found_town_widgets = {
1072 NWidget(NWID_HORIZONTAL),

Callers

nothing calls this directly

Calls 2

ScrollMainWindowToTileFunction · 0.85
SucceededMethod · 0.80

Tested by

no test coverage detected