Skip to content

Commit

Permalink
Fix Roadblock Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
StefArma committed Mar 1, 2018
1 parent e3dfa24 commit 6f9eb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AntistasiOfficial.Altis/puestoDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ if (_type != "delete") then {
if (_onRoad) then {
_permission = ["RB"] call fnc_BE_permission;
_text = "We cannot maintain any additional roadblocks.";

} else {
_permission = ["WP"] call fnc_BE_permission;
_text = "We cannot maintain any additional watchposts.";
Expand Down Expand Up @@ -65,6 +64,7 @@ if (_type != "delete") then {

_resourcesFIA = server getVariable ["resourcesFIA",0];
_hrFIA = server getVariable ["hr",0];
if(isnil "_permission") then {_permission = true};
if (_permission) then {
if (((_resourcesFIA < _cost) OR (_hrFIA < _hr)) AND (_type != "delete")) exitWith {hint format [localize "STR_TSK_TD_BEMP_BLD_COST",_hr,_cost]};

Expand Down

0 comments on commit 6f9eb37

Please sign in to comment.