Skip to content

Commit

Permalink
Area Markers - Cancel placement when an icon is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 committed Jun 7, 2024
1 parent 131eeb3 commit f153c31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/area_markers/functions/fnc_onMouseButtonDown.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ params ["_ctrlMouse", "_button"];

if (_button == 0) then {
_ctrlMouse setVariable [QGVAR(moving), true];

// Cancel currently active placement
if (call EFUNC(common,isPlacementActive)) then {
call EFUNC(common,getActiveTree) tvSetCurSel [-1];
};
};

0 comments on commit f153c31

Please sign in to comment.