From d8ac3f42b1493c24b0e5cce69eecfc5356b03fb6 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Fri, 27 Jan 2017 13:17:14 -0500 Subject: [PATCH] Remove unnecessary check for upgrade storage Fixes desert tent not upgradeable Vanilla commit: https://github.com/DayZMod/DayZ/commit/4e886c8c27265e78fec957bccfc9b7badaaf67c9 --- SQF/dayz_code/compile/fn_selfActions.sqf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index dcd435d86..35d0bcb6c 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -243,7 +243,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur _text = getText (configFile >> "CfgVehicles" >> _typeOfCursorTarget >> "displayName"); _isPlant = _typeOfCursorTarget in Dayz_plants; _istypeTent = (_cursorTarget isKindOf "TentStorage_base") or (_cursorTarget isKindOf "IC_Tent"); - _upgradeItems = ["TentStorage","TentStorage0","TentStorage1","TentStorage2","TentStorage3","StashSmall","StashSmall1","StashSmall2","StashSmall3","StashSmall4","StashMedium","StashMedium1","StashMedium2","StashMedium3","DomeTentStorage","DomeTentStorage0","DomeTentStorage1","DomeTentStorage2","DomeTentStorage3","DomeTentStorage4"]; + _upgradeItems = ["TentStorage","TentStorage0","TentStorage1","TentStorage2","TentStorage3","StashSmall","StashSmall1","StashSmall2","StashSmall3","StashSmall4","StashMedium","StashMedium1","StashMedium2","StashMedium3","DomeTentStorage","DomeTentStorage0","DomeTentStorage1","DomeTentStorage2","DomeTentStorage3","DesertTentStorage","DesertTentStorage0","DesertTentStorage1","DesertTentStorage2","DesertTentStorage3"]; _characterID = _cursorTarget getVariable ["CharacterID","0"]; if (DZE_permanentPlot) then { @@ -427,10 +427,8 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur //upgrade items if (_typeOfCursorTarget in _upgradeItems) then { if (s_player_upgradestorage < 0) then { - if (isText (configFile >> "CfgVehicles" >> _typeOfCursorTarget >> "Upgrade" >> "create")) then { - _displayName = getText (configFile >> "CfgVehicles" >> _typeOfCursorTarget >> "displayName"); - s_player_upgradestorage = player addAction [format[localize "STR_EPOCH_UPGRADE",_displayName], "\z\addons\dayz_code\actions\object_upgradeStorage.sqf",_cursorTarget, 0, false, true]; - }; + _displayName = getText (configFile >> "CfgVehicles" >> _typeOfCursorTarget >> "displayName"); + s_player_upgradestorage = player addAction [format[localize "STR_EPOCH_UPGRADE",_displayName], "\z\addons\dayz_code\actions\object_upgradeStorage.sqf",_cursorTarget, 0, false, true]; }; } else { player removeAction s_player_upgradestorage;