Skip to content

Commit

Permalink
delete space in EFUNC
Browse files Browse the repository at this point in the history
  • Loading branch information
Madin5 committed May 14, 2024
1 parent 55029a5 commit c55787e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/simpleSpawn/functions/fnc_getGroups.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions addons/simpleSpawn/functions/fnc_interval.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c55787e

Please sign in to comment.