Skip to content

Commit

Permalink
Merge pull request #2036 from acemod/mapToolsOnOtherMaps
Browse files Browse the repository at this point in the history
MapTools work on children of itemMap
  • Loading branch information
PabstMirror committed Aug 8, 2015
2 parents 054ac34 + d8c3666 commit 7c7fb35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion addons/maptools/functions/fnc_canUseMapTools.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@

visibleMap &&
{alive ACE_player} &&
{"ItemMap" in (assignedItems ACE_player)} &&
{
scopeName "hasMap";
{
if (_x isKindOf ["ItemMap", configFile >> "CfgWeapons"]) exitWith {true breakOut "hasMap"};
} forEach (assignedItems ACE_player);
false
} &&
{"ACE_MapTools" in (items ACE_player)} &&
{!GVAR(mapTool_isDragging)} &&
{!GVAR(mapTool_isRotating)}

0 comments on commit 7c7fb35

Please sign in to comment.