Skip to content

Commit

Permalink
Area Markers - Fix module and context menu action (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 authored Mar 15, 2023
1 parent e460e94 commit 1b188c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/area_markers/CfgContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class EGVAR(context_menu,actions) {
displayName = CSTRING(CreateAreaMarker);
icon = ICON_MARKERS;
condition = QUOTE(visibleMap);
statement = QUOTE([ARR_2(QQGVAR(create),[_position])] call CBA_fnc_serverEvent);
statement = QUOTE([ARR_2(QQGVAR(createMarker),[_position])] call CBA_fnc_serverEvent);
priority = 100;
};
};
3 changes: 1 addition & 2 deletions addons/area_markers/functions/fnc_module.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ if (!visibleMap) exitWith {

private _ctrlMap = findDisplay IDD_RSCDISPLAYCURATOR displayCtrl IDC_RSCDISPLAYCURATOR_MAINMAP;
private _position = _ctrlMap ctrlMapScreenToWorld getMousePosition;

[QGVAR(create), [_position]] call CBA_fnc_serverEvent;
[QGVAR(createMarker), [_position]] call CBA_fnc_serverEvent;

0 comments on commit 1b188c8

Please sign in to comment.