Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Fix budget hint showing for all sides with tool setting (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 authored and PabstMirror committed Aug 7, 2018
1 parent f8cd536 commit bed7b92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/fortify/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (isServer) then {
if (!hasInterface) exitWith {};

GVAR(isPlacing) = PLACE_CANCEL;
["ace_interactMenuOpened", {GVAR(isPlacing) = PLACE_CANCEL;}] call CBA_fnc_addEventHandler;
["ace_interactMenuOpened", {GVAR(isPlacing) = PLACE_CANCEL}] call CBA_fnc_addEventHandler;

GVAR(objectRotationX) = 0;
GVAR(objectRotationY) = 0;
Expand All @@ -24,7 +24,7 @@ GVAR(objectRotationZ) = 0;

[QGVAR(sideBudgetHint), {
params ["_side"];
if (_side isEqualTo side group ace_player && {GVAR(settingHint) isEqualTo 2} || {GVAR(settingHint) isEqualTo 1 && "ACE_Fortify" in (items ace_player)}) then {
if (_side isEqualTo side group ACE_player && {GVAR(settingHint) isEqualTo 2 || {GVAR(settingHint) isEqualTo 1 && {"ACE_Fortify" in (items ACE_player)}}}) then {
private _budget = [_side] call FUNC(getBudget);
TRACE_2("sideBudgetHint",_side,_budget);
[format ["%1 $%2", localize LSTRING(Budget), _budget]] call ACEFUNC(common,displayTextStructured);
Expand Down
2 changes: 1 addition & 1 deletion addons/fortify/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<Chinesesimp>显示预算更新</Chinesesimp>
</Key>
<Key ID="STR_ACEX_Fortify_settingHintDesc">
<English>Controls when updates to budget is shown in a hint display</English>
<English>Controls when budget update hints are shown</English>
<Chinese>決定預算變更時是否會顯示提示</Chinese>
<Chinesesimp>决定预算变更时是否会显示提示</Chinesesimp>
</Key>
Expand Down

0 comments on commit bed7b92

Please sign in to comment.