Skip to content

Commit 5024078

Browse files
authored
General - Cleanup all spaces in SQF macros (#1318)
1 parent 9769bf1 commit 5024078

File tree

354 files changed

+2121
-2117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+2121
-2117
lines changed

addons/api/fnc_addRackToVehicle.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private _selectPlayer = {
121121
} forEach ([] call CBA_fnc_players);
122122

123123
if (isNull _player) then {
124-
WARNING_1("No unit found for condition %1, defaulting to first player",_condition);
124+
WARNING_1("No unit found for condition %1 - defaulting to first player",_condition);
125125
_player = ([] call CBA_fnc_players) select 0;
126126
};
127127
};

addons/api/fnc_basicMissionSetup.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ params [
2626
// Run once
2727
if (!isNil QGVAR(basicMissionSetup) && {GVAR(basicMissionSetup)}) exitWith {};
2828

29-
TRACE_1("enter", _this);
29+
TRACE_1("enter",_this);
3030

3131
// Basic setup
3232
private _setupRadios = _logic getVariable ["RadioSetup", false];
@@ -102,7 +102,7 @@ private _addRadios = {
102102

103103
};
104104

105-
TRACE_1("Adding Radios", _cleanRadioList);
105+
TRACE_1("Adding Radios",_cleanRadioList);
106106

107107
if ((backpack _player == "") && {(["ACRE_PRC77", "ACRE_PRC117F"] arrayIntersect _cleanRadioList) isNotEqualTo []}) then {
108108
_player addBackpack "B_AssaultPack_khk";

addons/api/fnc_getBaseRadio.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ params [
1919
["_radioId", "", [""]]
2020
];
2121

22-
TRACE_1("", _radioId);
22+
TRACE_1("",_radioId);
2323
if ( ([_radioId] call FUNC(isBaseRadio)) ) exitWith {
2424
_radioId
2525
};

addons/api/fnc_getPresetChannelData.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ if (_channelReference isEqualType []) then {
4444
private _presetData = [_radioClass, _presetName] call EFUNC(sys_data,getPresetData);
4545
if (isNil "_presetData") exitWith { nil };
4646

47-
private _channels = HASH_GET(_presetData, "channels");
48-
private _channel = HASHLIST_SELECT(_channels, _channelNumber);
47+
private _channels = HASH_GET(_presetData,"channels");
48+
private _channel = HASHLIST_SELECT(_channels,_channelNumber);
4949

5050
if (isNil "_channel") exitWith { nil };
5151
_channel

addons/api/fnc_getPresetChannelField.sqf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ _channelNumber = _channelNumber - 1;
4848
private _presetData = [_radioClass, _presetName] call EFUNC(sys_data,getPresetData);
4949
if (isNil "_presetData") exitWith { nil };
5050

51-
private _channels = HASH_GET(_presetData, "channels");
52-
private _channel = HASHLIST_SELECT(_channels, _channelNumber);
51+
private _channels = HASH_GET(_presetData,"channels");
52+
private _channel = HASHLIST_SELECT(_channels,_channelNumber);
5353

5454
private _fieldName = [_radioClass, _fieldName] call FUNC(mapChannelFieldName);
5555

56-
if (!HASH_HASKEY(_channel, _fieldName)) exitWith { nil };
57-
private _value = HASH_GET(_channel, _fieldName);
56+
if (!HASH_HASKEY(_channel,_fieldName)) exitWith { nil };
57+
private _value = HASH_GET(_channel,_fieldName);
5858

5959
if (isNil "_value") exitWith { nil };
6060
_value

addons/api/fnc_initVehicleRacks.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if (_condition isEqualTo {} && {_vehiclePresetName isNotEqualTo ""}) then {
4949
private _index = _players findIf {[_x] call _condition};
5050

5151
if (_index == -1) then {
52-
WARNING_1("No unit found for condition %1, defaulting to first player",_condition);
52+
WARNING_1("No unit found for condition %1 - defaulting to first player",_condition);
5353
_index = 0;
5454
};
5555
_player = _players select _index;

addons/api/fnc_isKindOf.sqf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ if (_parent == "") then {
2929

3030
private _isAcre = getNumber (configFile >> "CfgAcreComponents" >> _parent >> "isAcre");
3131
// diag_log text format["_radioId: %1 isAcre: %2", _parent, _isAcre];
32-
TRACE_2("", _parent, _isAcre);
32+
TRACE_2("",_parent,_isAcre);
3333
if (_isAcre == 0) exitWith {
3434
false
3535
};
36-
TRACE_2("", _parent, _radioType);
36+
TRACE_2("",_parent,_radioType);
3737

3838
if (_parent == _radioType) exitWith {
3939
true
@@ -49,7 +49,7 @@ if (_parent == _radioType) exitWith {
4949

5050
while { _parent != "" } do {
5151
if (_parent == _radioType) exitWith {
52-
TRACE_2("", _parent, _radioType);
52+
TRACE_2("",_parent,_radioType);
5353
true
5454
};
5555
_parent = configName (inheritsFrom ( configFile >> "CfgAcreComponents" >> _parent));

addons/api/fnc_mapChannelFieldName.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ params [
2121
["_fieldName", "", [""]]
2222
];
2323

24-
TRACE_1("CALLING", "");
24+
TRACE_1("CALLING","");
2525
private _baseRadio = [_radioId] call FUNC(getBaseRadio);
26-
TRACE_1("", _baseRadio);
26+
TRACE_1("",_baseRadio);
2727
switch _baseRadio do {
2828
case "ACRE_PRC148": {
2929
if (_fieldName == "description" || _fieldName == "name") then {

addons/api/fnc_nameChannels.sqf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
FUNC(_channelNamesForPresets) = {
2121
params ["_channelNames", "_presetNames"];
2222

23-
TRACE_1("enter", _this);
23+
TRACE_1("enter",_this);
2424
if (_presetNames isNotEqualTo []) then {
2525
{
2626
if (_x != "") then {
@@ -52,7 +52,7 @@ private _channelNamesNoSides = {
5252
_presetNames pushBack [_x, _presetName];
5353
} forEach ((call FUNC(getAllRadios)) select 0);
5454

55-
TRACE_1("Configuring radio for presets", _presetNames);
55+
TRACE_1("Configuring radio for presets",_presetNames);
5656
[_this, _presetNames] call FUNC(_channelNamesForPresets);
5757
};
5858

@@ -64,7 +64,7 @@ private _channelNamesForPresetGroup = {
6464
_presetNames pushBack [_x, _presetName];
6565
} forEach ((call FUNC(getAllRadios)) select 0);
6666

67-
TRACE_1("Configuring radio for presets", _presetNames);
67+
TRACE_1("Configuring radio for presets",_presetNames);
6868
[_channelNames, _presetNames] call FUNC(_channelNamesForPresets);
6969
};
7070

@@ -73,7 +73,7 @@ params ["_logic", "_units", "_activated"];
7373

7474
if (!_activated) exitWith {};
7575

76-
TRACE_1("enter", _this);
76+
TRACE_1("enter",_this);
7777

7878
private _sideNumber = _logic getVariable ["SideSelect", false];
7979
private _channelNames = [
@@ -93,7 +93,7 @@ private _setupSides = false;
9393
{
9494
if (_x isKindOf QGVAR(basicMissionSetup)) exitWith {
9595
_setupSides = _x getVariable ["RadioSetup", false];
96-
TRACE_1("Dedicated basic mission module, checking sides configuration", _setupSides);
96+
TRACE_1("Dedicated basic mission module - checking sides configuration",_setupSides);
9797
};
9898
} forEach (allMissionObjects "logic");
9999

addons/api/fnc_setPresetChannelField.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ TRACE_1("",_channelNumber);
5454
//_channelNumber = ["getCurrentChannel"] call GUI_DATA_EVENT;
5555
private _presetData = [_radioClass, _presetName] call EFUNC(sys_data,getPresetData);
5656
if (isNil "_presetData") exitWith {false};
57-
TRACE_1("", _presetData);
57+
TRACE_1("",_presetData);
5858

5959
private _channels = HASH_GET(_presetData,"channels");
6060
TRACE_1("",_channels);

0 commit comments

Comments
 (0)