Skip to content

Commit 7733c30

Browse files
authored
Merge pull request #1798 from Andx667/master
General - Fix Typos and Spelling Errors in Comments
2 parents 51a0927 + 4b74b57 commit 7733c30

24 files changed

+41
-41
lines changed

addons/common/delayless_loop.fsm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class FSM
2525
"_c = count _this;" \n
2626
"_params = _this select 0;" \n
2727
"" \n
28-
"// Handle optional paramters" \n
28+
"// Handle optional parameters" \n
2929
"if (_c < 4) then { _this set [3, {}] };" \n
3030
"if (_c < 5) then { _this set [4, {}] };" \n
3131
"if (_c < 6) then { _this set [5, []] };" \n
@@ -84,4 +84,4 @@ class FSM
8484
"END"
8585
};
8686
};
87-
/*%FSM</COMPILE>*/
87+
/*%FSM</COMPILE>*/

addons/common/fnc_removeBackpackCargo.sqf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description:
66
Removes specific backpack(s) from cargo space.
77
88
Warning: All weapon attachments/magazines in all backpacks in container will become detached.
9-
Warning: Preset weapons without non-preset parents will get their attachments readded (engine limitation).
9+
Warning: Preset weapons without non-preset parents will get their attachments re-added (engine limitation).
1010
1111
Parameters:
1212
_container - Object with cargo <OBJECT>
@@ -67,7 +67,7 @@ private _backpackData = [];
6767
_backpackData pushBack [typeOf _x, getItemCargo _x, magazinesAmmoCargo _x, weaponsItemsCargo _x];
6868
} forEach (everyBackpack _container); // [object1, object2, ...]
6969

70-
// Clear cargo space and readd the items as long it's not the type in question
70+
// Clear cargo space and re-add the items as long as it's not the type in question
7171
clearBackpackCargoGlobal _container;
7272

7373

@@ -120,10 +120,10 @@ private _fnc_addContents = {
120120
[_container, _itemCargo, _magazinesAmmoCargo, _weaponsItemsCargo] call _fnc_addContents;
121121
};
122122
} else {
123-
// Save all backpacks for finding the one we readd after this
123+
// Save all backpacks for finding the one we re-add after this
124124
private _addedBackpacks = everyBackpack _container;
125125

126-
// Readd
126+
// Re-add
127127
private _backpack = [_backpackClass, "CfgVehicles"] call CBA_fnc_getNonPresetClass;
128128
_container addBackpackCargoGlobal [_backpack, 1];
129129

addons/common/fnc_removeItemCargo.sqf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description:
66
Removes specific item(s) from cargo space.
77
88
Warning: All weapon attachments/magazines in containers in container will become detached.
9-
Warning: Preset weapons without non-preset parents will get their attachments readded (engine limitation).
9+
Warning: Preset weapons without non-preset parents will get their attachments re-added (engine limitation).
1010
1111
Parameters:
1212
_container - Object with cargo <OBJECT>
@@ -82,7 +82,7 @@ private _containerData = [];
8282
};
8383
} forEach _allItemsType;
8484

85-
// Clear cargo space and readd the items as long it's not the type in question
85+
// Clear cargo space and re-add the items as long as it's not the type in question
8686
clearItemCargoGlobal _container;
8787

8888
TRACE_1("Old cargo",_containerData);
@@ -135,7 +135,7 @@ private _fnc_addContents = {
135135
// Non-container item
136136
// Add with new count
137137
_container addItemCargoGlobal [_itemClass, _itemCargoOrCount - _count]; // Silently fails on 'count < 1'
138-
TRACE_2("Readding",_itemClass,_itemCargoOrCount - _count);
138+
TRACE_2("Re-adding",_itemClass,_itemCargoOrCount - _count);
139139

140140
_count = 0;
141141
} else {
@@ -147,17 +147,17 @@ private _fnc_addContents = {
147147
};
148148
};
149149
} else {
150-
// Readd only
150+
// Re-add only
151151
if (count _x < 4) then {
152152
// Non-container item
153153
_container addItemCargoGlobal [_itemClass, _itemCargoOrCount];
154-
TRACE_2("Readding",_itemClass,_itemCargoOrCount);
154+
TRACE_2("Re-adding",_itemClass,_itemCargoOrCount);
155155
} else {
156156
// Container item
157-
// Save all containers for finding the one we readd after this
157+
// Save all containers for finding the one we re-add after this
158158
private _addedContainers = ((everyContainer _container) apply {_x select 1}) - everyBackpack _container;
159159

160-
// Readd
160+
// Re-add
161161
private _addedContainer = [_itemClass] call CBA_fnc_getNonPresetClass;
162162
_container addItemCargoGlobal [_addedContainer, 1];
163163

addons/common/fnc_removeWeaponCargo.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description:
66
Removes specific weapon(s) from cargo space.
77
88
Warning: All weapon attachments/magazines in container will become detached.
9-
Warning: Preset weapons without non-preset parents will get their attachments readded (engine limitation).
9+
Warning: Preset weapons without non-preset parents will get their attachments re-added (engine limitation).
1010
1111
Parameters:
1212
_container - Object with cargo <OBJECT>
@@ -64,7 +64,7 @@ _count = round _count;
6464
// Returns array in weaponsItems format
6565
private _weaponsItemsCargo = weaponsItemsCargo _container;
6666

67-
// Clear cargo space and readd the items as long it's not the type in question
67+
// Clear cargo space and re-add the items as long as it's not the type in question
6868
clearWeaponCargoGlobal _container;
6969

7070
{

addons/common/init_addMiscItemsToArsenal.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Author:
7373
_ctrlList lbSetTooltip [_lbAdd * _columns,format ["%1\n%2",getText (_xCfg >> "displayName"),_x]];
7474
};
7575

76-
// Add item to main list (will be used on next arsenalOpened automaticly)
76+
// Add item to main list (will be used on next arsenalOpened automatically)
7777
(bis_fnc_arsenal_data select IDC_RSCDISPLAYARSENAL_TAB_CARGOMISC) pushBack _x;
7878
} forEach _cbaMiscItems;
7979

addons/diagnostic/fnc_debug.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if (_global) then {
6565
[QGVAR(debug), [_message, _title, [_useChat, _useLog, false]]] call CBA_fnc_remoteEvent;
6666
};
6767

68-
// if string, split into seperate lines marked by "\n"
68+
// if string, split into separate lines marked by "\n"
6969
if (_message isEqualType "") then {
7070
_message = [_message, "\n"] call CBA_fnc_split;
7171
};

addons/events/XEH_preInit.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ADDON = false;
44

55
//ClientOwner command is unreliable in saved games
66
//CBA_clientID will hold the correct value for the client's owner (needed for publicVariableClient and remoteExec)
7-
CBA_clientID = -1; //Will be -1 until real value recieved from server
7+
CBA_clientID = -1; //Will be -1 until real value received from server
88

99
// Initialisation required by CBA events.
1010
GVAR(eventNamespace) = call CBA_fnc_createNamespace;

addons/settings/XEH_postInit.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "script_component.hpp"
22

3-
// --- refresh all settings after postInit to guarantee that events are added and settings are recieved from server
3+
// --- refresh all settings after postInit to guarantee that events are added and settings are received from server
44
{
55
if (isNull GVAR(server)) then {
66
ERROR("No server settings after postInit phase.");

addons/settings/fnc_import.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description:
66
Import all setting info from string.
77
88
Parameters:
9-
_info - Formated settings info, (from CBA_settings_fnc_export) <STRING>
9+
_info - Formatted settings info, (from CBA_settings_fnc_export) <STRING>
1010
_source - Can be "client", "mission" or "server" (optional, default: "client") <STRING>
1111
1212
Returns:

addons/statemachine/CBA_FSMEditor.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Compile {
4444

4545
class State_Any {
4646
print_state = "class %(statename) {\n";
47-
indent_stateContents = 8; //Neccessary to preserve formatting
47+
indent_stateContents = 8; //Necessary to preserve formatting
4848
print_stateContents = "%(stateinit)\n";
4949
indent_stateOpen = 8;
5050

@@ -53,7 +53,7 @@ class Compile {
5353
indent_transitionOpen = 12;
5454
print_target = "targetState = QUOTE(%(to));\n";
5555
print_condition = "condition = QUOTE(%(condition));";
56-
indent_transitionContents = 12; // Neccessary to preserve formatting.
56+
indent_transitionContents = 12; // Necessary to preserve formatting.
5757
print_transitionContents = "%(action)\n";
5858
indent_transitionClose = 8;
5959
print_transitionClose = "};\n";

0 commit comments

Comments
 (0)