mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +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:
@@ -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