mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-04 19:49:34 +03:00
Fix Advanced Trading lag exploit
Every button action that processes money/vehicles in some way should do closeDialog before actions are called, currently it's possible to game the system using a net limiter. Thanks to Merlijn for the fix
This commit is contained in:
1 parent
f6e8eca54b
commit
0617a77e1a
1 file changed
+2
-2
@@ -328,7 +328,7 @@ class AdvancedTrading
|
||||
x = 0.46 * safezoneW + safezoneX;
|
||||
y = 0.77 * safezoneH + safezoneY;
|
||||
w = 0.13 * safezoneW;
|
||||
onButtonClick = "call Z_SellItems;";
|
||||
onButtonClick = "closeDialog 0; call Z_SellItems;";
|
||||
};
|
||||
class ZSC_RscButtonMenu_AT27: ZSC_RscButtonMenu
|
||||
{
|
||||
@@ -338,7 +338,7 @@ class AdvancedTrading
|
||||
y = 0.77 * safezoneH + safezoneY;
|
||||
w = 0.13 * safezoneW;
|
||||
onload = "ctrlShow [_this,false]";
|
||||
onButtonClick = "call Z_BuyItems;";
|
||||
onButtonClick = "closeDialog 0; call Z_BuyItems;";
|
||||
};
|
||||
class ZSC_RscButtonMenu_AT28: ZSC_RscButtonMenu
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user