Skip to content

Commit

Permalink
Fix spread variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 committed Jun 28, 2019
1 parent 54b86e2 commit 37d7803
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/modules/functions/fnc_gui_fireMission.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ private _fnc_onConfirm = {
private _ctrlTarget = _display displayCtrl IDC_FIREMISSION_TARGET_LOGIC;
private _target = GVAR(targetLogics) select (_ctrlTarget lbValue lbCurSel _ctrlTarget);

private _ctrlSpreadSlider = _display displayCtrl IDC_FIREMISSION_PRECISION_SLIDER;
private _precision = sliderPosition _ctrlSpreadSlider;
private _ctrlSpreadSlider = _display displayCtrl IDC_FIREMISSION_SPREAD_SLIDER;
private _spread = sliderPosition _ctrlSpreadSlider;

private _ctrlUnits = _display displayCtrl IDC_FIREMISSION_UNITS;
private _numberOfUnits = lbCurSel _ctrlUnits + 1;
Expand All @@ -176,9 +176,9 @@ private _fnc_onConfirm = {
_vehicles = _vehicles select {alive _x && {_ammo in getArtilleryAmmo [_x]}};
_vehicles resize (_numberOfUnits min count _vehicles);

GVAR(lastFireMission) = [_mode, _grid, _target, _precision, _numberOfUnits, _ammo, _rounds];
GVAR(lastFireMission) = [_mode, _grid, _target, _spread, _numberOfUnits, _ammo, _rounds];

[_vehicles, [_grid, _target] select _mode, _precision, _ammo, _rounds] call FUNC(moduleFireMission);
[_vehicles, [_grid, _target] select _mode, _spread, _ammo, _rounds] call FUNC(moduleFireMission);

deleteVehicle _logic;
};
Expand Down

0 comments on commit 37d7803

Please sign in to comment.