Codefix: wrong parameter names and partially missing parameters

This commit is contained in:
Rubidium
2026-02-02 18:18:51 +01:00
committed by rubidium42
parent c6c06e13eb
commit bcaf3eaec2
66 changed files with 117 additions and 47 deletions
+4 -1
View File
@@ -556,6 +556,7 @@ static void AddVehicleToGroup(Vehicle *v, GroupID new_g)
* @param group_id index of group
* @param veh_id vehicle to add to a group
* @param add_shared Add shared vehicles as well.
* @param vli The list of vehicles that should be added to the group (can be empty).
* @return the cost of this operation or an error
*/
std::tuple<CommandCost, GroupID> CmdAddVehicleGroup(DoCommandFlags flags, GroupID group_id, VehicleID veh_id, bool add_shared, const VehicleListIdentifier &vli)
@@ -713,7 +714,9 @@ CommandCost CmdSetGroupLivery(DoCommandFlags flags, GroupID group_id, bool prima
/**
* Set group flag for a group and its sub-groups.
* @param g initial group.
* @param set 1 to set or 0 to clear protection.
* @param flag The flag to set.
* @param set \c true to set or \c false to clear protection.
* @param children Whether to propagate the change to the children.
*/
static void SetGroupFlag(Group *g, GroupFlag flag, bool set, bool children)
{