From 0f9eacd28a819ea876669bfa6dc61519123f77e5 Mon Sep 17 00:00:00 2001 From: vbawol Date: Tue, 26 Sep 2017 17:20:04 -0500 Subject: [PATCH] fixes part 3 --- Sources/epoch_code/compile/setup/masterLoop/init.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/epoch_code/compile/setup/masterLoop/init.sqf b/Sources/epoch_code/compile/setup/masterLoop/init.sqf index 421d2910..9c222583 100644 --- a/Sources/epoch_code/compile/setup/masterLoop/init.sqf +++ b/Sources/epoch_code/compile/setup/masterLoop/init.sqf @@ -30,8 +30,8 @@ _customVarLimits = _customVarsInit apply {_x param [2,[]]}; _varName = format["EPOCH_player%1",_x]; _varNameTmp = call compile format["_player%1Key",_x]; if !(isNil "_varNameTmp") then {_varName = _varNameTmp}; - _varLimits params [[format["_player%1Max",_x],100],[format["_player%1Min",_x],0]]; - call compile format['_player%1 = missionNamespace getVariable [_varName, _varDefault];',_x]; + _varLimits params [[format["_player%1MaxRaw",_x],100],[format["_player%1MinRaw",_x],0]]; + call compile format['_player%1 = missionNamespace getVariable [_varName, _varDefault]; _player%1Max = _player%1MaxRaw; _player%1Min = _player%1MinRaw',_x]; } forEach _customVarNames; EPOCH_playerEnergyMax = _playerEnergyMax;