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

Function CcCreateGroup

src/group_gui.cpp:1269–1273  ·  view source on GitHub ↗

* Opens a 'Rename group' window for newly created group. * @param veh_type Vehicle type. */

Source from the content-addressed store, hash-verified

1267 * @param veh_type Vehicle type.
1268 */
1269static void CcCreateGroup(GroupID gid, VehicleType veh_type)
1270{
1271 VehicleGroupWindow *w = FindVehicleGroupWindow(veh_type, _current_company);
1272 if (w != nullptr) w->ShowRenameGroupWindow(gid, true);
1273}
1274
1275/**
1276 * Opens a 'Rename group' window for newly created group.

Callers 1

CcAddVehicleNewGroupFunction · 0.85

Calls 3

FindVehicleGroupWindowFunction · 0.85
ShowRenameGroupWindowMethod · 0.80
FailedMethod · 0.80

Tested by

no test coverage detected