From b0f032117856e5c32b0e8695bad5186a9541a451 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 24 Oct 2023 15:15:16 -0500 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jouni Järvinen --- addons/pike/CfgAmmo.hpp | 2 +- addons/pike/functions/fnc_ammoFired.sqf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/pike/CfgAmmo.hpp b/addons/pike/CfgAmmo.hpp index 80e6ea54d5..224f820fad 100644 --- a/addons/pike/CfgAmmo.hpp +++ b/addons/pike/CfgAmmo.hpp @@ -77,7 +77,7 @@ class CfgAmmo { // Attack profile type selection defaultAttackProfile = "LIN"; - attackProfiles[] = { "LIN" }; + attackProfiles[] = {"LIN"}; }; }; }; diff --git a/addons/pike/functions/fnc_ammoFired.sqf b/addons/pike/functions/fnc_ammoFired.sqf index 6d6bd18168..dd99c5f60f 100644 --- a/addons/pike/functions/fnc_ammoFired.sqf +++ b/addons/pike/functions/fnc_ammoFired.sqf @@ -23,7 +23,7 @@ if (isNull _projectile) exitWith {}; // Get MissileGuidance args now private _firedEH = +_this; -// Inject the submuntion ammo into guidance args +// Inject the submunition ammo into guidance args _firedEH set [4, getText (configFile >> "CfgAmmo" >> _ammo >> "submunitionAmmo")]; private _guidanceArgs = _firedEH call EFUNC(missileguidance,onFiredDeferred); _projectile setVariable [QGVAR(guidanceArgs), _guidanceArgs]; @@ -35,7 +35,7 @@ _projectile addEventHandler ["SubmunitionCreated", { private _guidanceArgs = _projectile getVariable [QGVAR(guidanceArgs), []]; if (_guidanceArgs isEqualTo []) exitWith { ERROR_1("bad args %1",_projectile); }; - // Inject the submuntion projectile and time into guidance args + // Inject the submunition projectile and time into guidance args _guidanceArgs params ["_firedEH", "", "", "", "_stateParams"]; _firedEH set [6, _submunitionProjectile]; // _firedEH params ["","","","","","","_projectile"]; _stateParams set [0, diag_tickTime]; // _stateParams params ["_lastRunTime"]