Skip to content

Commit

Permalink
trp errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tuntematonjr committed Aug 21, 2021
1 parent 4a715e4 commit 96c38fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/firesupport/functions/fnc_calculate_eta.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if ( count _listArray isEqualTo 2 ) then {
private _trp1Toggle = cbChecked (findDisplay MAIN_IDD displayCtrl TRP1);
private _trp1Index = lbCurSel TRP1_LIST;
if (_trp1Toggle) then {
if (_trp1Index != -1) then {
if (_trp1Index != -1 && (count GVAR(trpValues)) isNotEqualTo 0) then {
private _trp1Values = GVAR(trpValues) select _trp1Index;
_easting = _trp1Values select 1;
_northing = _trp1Values select 2;
Expand Down
3 changes: 1 addition & 2 deletions addons/firesupport/functions/fnc_selected_bookmark.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ private _index = lbCurSel BOOKMARK_LIST_IDC;
if ((count GVAR(bookmarkValues)-1) < _index) exitWith { };

private _values = GVAR(bookmarkValues) select lbCurSel BOOKMARK_LIST_IDC;

_values params ["_name", "_easting", "_northing", "_easting2", "_northing2", "_gun", "_gunText", "_ammoText", "_mode", "_modeText", "_count", "_radius", "_delay", "_trp1", "_trp2", "_timeCheck", "_hours", "_minutes", "_seconds", "_volley", "_trpList1", "_trpList2", "_trpList1Text", "_trpList2text"];
private _trpList1TextConfirm = lbText [TRP1_LIST, _trpList1];
private _trpList2textConfirm = lbText [TRP2_LIST, _trpList2];
Expand All @@ -33,7 +32,7 @@ ctrlSetText [NORTHING_END_IDC, _northing2];
(findDisplay MAIN_IDD displayCtrl TOGGLETIME) cbSetChecked _timeCheck;
(findDisplay MAIN_IDD displayCtrl TOGGLEVOLLEY) cbSetChecked _volley;

[_trpList1, _trpList2] call FUNC(trpCheckbox);
[_trp1, _trp2] call FUNC(trpCheckbox);
[] call FUNC(timeCheckbox);

private _errorText = "";
Expand Down
4 changes: 2 additions & 2 deletions addons/firesupport/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#define MAJOR 2
#define MINOR 0
#define PATCHLVL 0
#define BUILD 07082021
#define PATCHLVL 1
#define BUILD 21082021

#define VERSION MAJOR.MINOR.PATCHLVL.BUILD
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
Expand Down

0 comments on commit 96c38fc

Please sign in to comment.