Update Maintain

- The maintain animation can be interrupted now
- Fix a potential crash exploit if maintain buildings to often in a row in a very short time frame.
This commit is contained in:
AirwavesMan
2020-09-08 16:02:53 +02:00
parent ed998db9f7
commit 910ab43a01
4 changed files with 52 additions and 53 deletions

View File

@@ -32,7 +32,7 @@ class PlotManagement
x = 0.31 * safezoneW + safezoneX;
y = 0.22 * safezoneH + safezoneY;
w = 0.08 * safezoneW;
onButtonClick = "call PlotPreview;";
onButtonClick = "[] spawn PlotPreview;";
};
class RscShortcutButton_7010: ZSC_RscButtonMenu
@@ -42,7 +42,7 @@ class PlotManagement
x = 0.41 * safezoneW + safezoneX;
y = 0.22 * safezoneH + safezoneY;
w = 0.08 * safezoneW;
onButtonClick = "'maintain' call MaintainPlot;";
onButtonClick = "'maintain' spawn MaintainPlot;";
};
class RscShortcutButton_7011: ZSC_RscButtonMenu
@@ -52,7 +52,7 @@ class PlotManagement
x = 0.51 * safezoneW + safezoneX;
y = 0.22 * safezoneH + safezoneY;
w = 0.08 * safezoneW;
onButtonClick = "'force' call MaintainPlot;";
onButtonClick = "'force' spawn MaintainPlot;";
};
class RscText_7012: ZSC_RscText