Skip to content

Commit

Permalink
Fix padded macro args warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 committed Sep 4, 2024
1 parent 3a6f817 commit f644811
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion addons/acre/functions/fnc_initChannelsNames.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ private _targetSide = [[_sourceSide], [WEST, EAST, INDEPENDENT, CIVILIAN]] selec

} forEach _targetSide;

INFO_1("Initialized %1 channel names.", str _targetSide);
INFO_1("Initialized %1 channel names.",str _targetSide);

nil
2 changes: 1 addition & 1 deletion addons/curator/CfgEden.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Cfg3DEN {
tooltip = CSTRING(isZeus_Description);
property = QGVAR(isZeus);
control = "Checkbox";
expression = QUOTE(if (_value) then {ARR_2([{[_this] call FUNC(assignZeus)}, _this]) call CBA_fnc_execNextFrame});
expression = QUOTE(if (_value) then {ARR_2([{[_this] call FUNC(assignZeus)},_this]) call CBA_fnc_execNextFrame});
defaultValue = "false";
condition = "objectControllable";
};
Expand Down
2 changes: 1 addition & 1 deletion addons/curator/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if (isServer) then {
params ["_unit"];
if !(isPlayer _unit) exitWith {};

INFO_1("Unassigning Zeus from '%1'", _unit);
INFO_1("Unassigning Zeus from '%1'",_unit);

private _curatorModule = getAssignedCuratorLogic _unit;
if (_curatorModule isEqualTo objNull) exitWith {};
Expand Down
2 changes: 1 addition & 1 deletion addons/debug_console/functions/fnc_initDebugConsole.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private _basePositionRow2 = ctrlPosition (_display displayCtrl IDC_RSCDEBUGCONSO
// Create buttons in bottom row
{
_x params ["_text", "_tooltip", "_code"];
TRACE_3("adding debug console button", _text, _tooltip, _code);
TRACE_3("adding debug console button",_text,_tooltip,_code);


private _col = floor (_forEachIndex / ITEMS_PER_ROW);
Expand Down
12 changes: 6 additions & 6 deletions addons/loading/CfgLoadingScreen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@

class GVAR(CfgLoadingScreen) {
class Backgrounds {
LOADING_SCREEN_CLASS(cup_0,ARR_2(Norek, WINDOWS_95_SE));
LOADING_SCREEN_CLASS(cup_0,ARR_2(Norek,WINDOWS_95_SE));
LOADING_SCREEN_CLASS(gm_0,Mikkeboss);
LOADING_SCREEN_CLASS(ifa_0,Mikkeboss);
LOADING_SCREEN_CLASS(ifa_1,Krystol);
LOADING_SCREEN_CLASS(ifa_2,veteran29);
LOADING_SCREEN_CLASS(ifa_3,ARR_2(Krystol, WINDOWS_95_SE));
LOADING_SCREEN_CLASS(ifa_3,ARR_2(Krystol,WINDOWS_95_SE));
LOADING_SCREEN_CLASS(rhs_0,Monk[e]y);
LOADING_SCREEN_CLASS(rhs_1,ARR_2(Mikkeboss, JurijPietrowicz));
LOADING_SCREEN_CLASS(rhs_1,ARR_2(Mikkeboss,JurijPietrowicz));
LOADING_SCREEN_CLASS(rhs_2,Mikkeboss);
LOADING_SCREEN_CLASS(rhs_3,Monk[e]y);
LOADING_SCREEN_CLASS(rhs_4,ARR_2(Norek, Nomus));
LOADING_SCREEN_CLASS(rhs_4,ARR_2(Norek,Nomus));
LOADING_SCREEN_CLASS(rhs_5,Bolec);
LOADING_SCREEN_CLASS(rhs_6,Bolec);
LOADING_SCREEN_CLASS(rhs_7,Renchon);
LOADING_SCREEN_CLASS(rhs_8,Hyperion);
LOADING_SCREEN_CLASS(serialkillers_0,ARR_2(Renchon, Bene));
LOADING_SCREEN_CLASS(serialkillers_0,ARR_2(Renchon,Bene));
LOADING_SCREEN_CLASS(vanilla_0,Monk[e]y);
LOADING_SCREEN_CLASS(other_0,Monk[e]y);
LOADING_SCREEN_CLASS(other_1,Monk[e]y);
LOADING_SCREEN_CLASS(unsung_0,WINDOWS_95_SE);
LOADING_SCREEN_CLASS(unsung_1,3Mydlo3);
LOADING_SCREEN_CLASS(postapo_0,Monk[e]y);
LOADING_SCREEN_CLASS(bunny,Jabar);
LOADING_SCREEN_CLASS(mirko,ARR_2(Bolec, WINDOWS_95_SE));
LOADING_SCREEN_CLASS(mirko,ARR_2(Bolec,WINDOWS_95_SE));
};
};
4 changes: 2 additions & 2 deletions addons/main_menu/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ class Extended_PostInit_EventHandlers {
class Extended_DisplayLoad_EventHandlers {
class RscDisplayRemoteMissions {
ADDON = QUOTE(with uiNamespace do {\
ARR_2([_this select 0, 'RscDisplayRemoteMissions']) call COMPILE_SCRIPT(XEH_multiplayerDisplay);\
ARR_2([_this select 0,'RscDisplayRemoteMissions']) call COMPILE_SCRIPT(XEH_multiplayerDisplay);\
});
};
class RscDisplayMultiplayerSetup {
ADDON = QUOTE(with uiNamespace do {\
ARR_2([_this select 0, 'RscDisplayMultiplayerSetup']) call COMPILE_SCRIPT(XEH_multiplayerDisplay);\
ARR_2([_this select 0,'RscDisplayMultiplayerSetup']) call COMPILE_SCRIPT(XEH_multiplayerDisplay);\
});
};
};
4 changes: 2 additions & 2 deletions addons/tasks/functions/fnc_readDestination.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ private _destination = objNull;
if (_taskMarker isNotEqualTo "") then {
private _markerPos = getMarkerPos _taskMarker;
if (_markerPos isNotEqualTo [0, 0, 0]) exitWith {_destination = _markerPos};
WARNING_1("Marker %1 does not exist!", _taskMarker);
WARNING_1("Marker %1 does not exist!",_taskMarker);
};

// destination can contain an array, isNull can't be used
if (_destination isEqualTo objNull && {_taskObject isNotEqualTo ""}) then {
private _object = missionNamespace getVariable [_taskObject, objNull];
if (!isNull _object) exitWith {_destination = _object};
WARNING_1("Object %1 does not exist!", _taskObject);
WARNING_1("Object %1 does not exist!",_taskObject);
};

// destination can contain an array, isNull can't be used
Expand Down
2 changes: 1 addition & 1 deletion addons/tasks/functions/fnc_readOwners.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private _taskOwners = [];
// Try to reach object
private _object = missionNamespace getVariable [_x, objNull];
if (isNull _object) exitWith {
WARNING_1("Missing object '%1' for task owner", _x);
WARNING_1("Missing object '%1' for task owner",_x);
};
_taskOwners pushBackUnique _object;
};
Expand Down

0 comments on commit f644811

Please sign in to comment.