Skip to content

Commit

Permalink
Map Tools - Improve modded maps support (acemod#8729)
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 authored Dec 7, 2021
1 parent 59fe345 commit e0df864
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions addons/maptools/functions/fnc_canUseMapTools.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@

visibleMap &&
{alive ACE_player} &&
{
scopeName "hasMap";
{
if (_x isKindOf ["ItemMap", configFile >> "CfgWeapons"]) exitWith {true breakOut "hasMap"};
} forEach (assignedItems ACE_player);
false
} &&
{getText (configFile >> "CfgWeapons" >> (assignedItems ACE_player param [0, ""]) >> "simulation") == "ItemMap"} &&
{"ACE_MapTools" in (ACE_player call EFUNC(common,uniqueItems))} &&
{!GVAR(mapTool_isDragging)} &&
{!GVAR(mapTool_isRotating)}

0 comments on commit e0df864

Please sign in to comment.