diff --git a/addons/simpleSpawn/functions/fnc_getGroups.sqf b/addons/simpleSpawn/functions/fnc_getGroups.sqf index 008e00a..751bcda 100644 --- a/addons/simpleSpawn/functions/fnc_getGroups.sqf +++ b/addons/simpleSpawn/functions/fnc_getGroups.sqf @@ -82,7 +82,7 @@ private _vehiclesToDelete = []; private _vehicleIndex = -1; _vehicleIndex = _vehiclesToDelete findIf {_x isEqualTo _vehicle}; if (_vehicleIndex == -1) then { - private _vehInfo = _vehicle call EFUNC(main, getVehicleInfo); + private _vehInfo = _vehicle call EFUNC(main,getVehicleInfo); _vehiclesInfo pushBack _vehInfo; _vehiclesToDelete pushBack _vehicle; _vehicleIndex = count _vehiclesInfo - 1; diff --git a/addons/simpleSpawn/functions/fnc_interval.sqf b/addons/simpleSpawn/functions/fnc_interval.sqf index 7476b45..1ce4c28 100644 --- a/addons/simpleSpawn/functions/fnc_interval.sqf +++ b/addons/simpleSpawn/functions/fnc_interval.sqf @@ -33,7 +33,7 @@ if (_deleteVehicles && !(_vehiclesInfo isEqualTo [])) exitWith { private _vehiclesInfoNew = +_vehiclesInfo; for "_i" from 1 to (_unitsPerInterval min count _vehiclesInfoNew) do { private _vehInfo = _vehiclesInfoNew deleteAt 0; - private _vehicle = _vehInfo call EFUNC(main, createVehicleFromInfo); + private _vehicle = _vehInfo call EFUNC(main,createVehicleFromInfo); [_vehicle] call _executionCodeVehicle; _vehicles pushBack _vehicle; _logic setVariable [QGVAR(vehicles), _vehicles]; @@ -89,15 +89,15 @@ while {_spawnedUnits < _unitsPerInterval && !(_units isEqualTo [])} do { _vehicle isKindOf "StaticWeapon" && {!(alive _building isEqualTo _buildingStatus)} }) exitWith {}; - _unit = [_group, _type, _pos, _dir, 0, false] call EFUNC(main, spawnAI); + _unit = [_group, _type, _pos, _dir, 0, false] call EFUNC(main,spawnAI); _spawnedUnits = _spawnedUnits + 1; _unit setUnitLoadout _loadout; _group addVehicle _vehicle; - [_unit, _vehicle, _role, _cargoIndex] call EFUNC(main, moveInVehicleRole); + [_unit, _vehicle, _role, _cargoIndex] call EFUNC(main,moveInVehicleRole); }; } else { if (!_checkBuildings || alive _building isEqualTo _buildingStatus) then { - _unit = [_group, _type, _pos, _dir] call EFUNC(main, spawnAI); + _unit = [_group, _type, _pos, _dir] call EFUNC(main,spawnAI); _spawnedUnits = _spawnedUnits + 1; _unit setUnitLoadout _loadout; _unit setUnitPos _stance;