From 6cf522fc162b2ace4ec837264e655315983c93f7 Mon Sep 17 00:00:00 2001 From: He-Man Date: Tue, 3 Oct 2017 00:22:14 +0200 Subject: [PATCH] Fixed Wet Variable --- Sources/epoch_code/compile/setup/masterLoop/Event2.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf index 16d68899..67bef9cd 100644 --- a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf +++ b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf @@ -160,7 +160,7 @@ if (_warming) then { // wet/dry if (_wet) then { - _playerWet = ((_playerWet + _increaseWet) min _playerWetMax) max _playerWetMin; + _playerWet = [_playerWetKey,_increaseWet,_playerWetMax,_playerWetMin] call EPOCH_fnc_setVariableLimited; if (_playerWet > 50) then { _soiledLossRate = 1; _playerSoiled = [_playerSoiledKey,-_soiledLossRate,_playerSoiledMax,_playerSoiledMin] call EPOCH_fnc_setVariableLimited;