mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Move plotManagement compiles to compiles.sqf
This was needlessly recompiling every time the addAction was clicked. DisableSerialization is only needed if a display element is stored in a variable within the current script. The called functions already have it.
This commit is contained in:
@@ -1,22 +1,5 @@
|
||||
disableSerialization;
|
||||
|
||||
PlotGetFriends = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\plotManagement\plotGetFriends.sqf";
|
||||
PlotNearbyHumans = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\plotManagement\plotNearbyHumans.sqf";
|
||||
PlotAddFriend = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\plotManagement\plotAddFriend.sqf";
|
||||
PlotRemoveFriend = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\plotManagement\plotRemoveFriend.sqf";
|
||||
PlotObjects = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\plotManagement\plotObjects.sqf";
|
||||
PlotPreview = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\plotManagement\plotToggleMarkers.sqf";
|
||||
|
||||
// use this for gold
|
||||
MaintainPlot = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\plotManagement\maintain_area.sqf";
|
||||
|
||||
// use this for single currency
|
||||
//MaintainPlot = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\plotManagement\maintain_areaSC.sqf";
|
||||
|
||||
|
||||
createdialog "PlotManagement";
|
||||
call PlotNearbyHumans;
|
||||
call PlotGetFriends;
|
||||
["preview"] call MaintainPlot;
|
||||
call PlotObjects;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user