Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/FIX-hideout_marker'…
Browse files Browse the repository at this point in the history
… into master_stable
  • Loading branch information
Vdauphin committed Jun 25, 2016
2 parents 3bc02b2 + 8c88352 commit 415319c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/load.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ _array_ho = profileNamespace getVariable [format ["btc_hm_%1_ho",_name],[]];
_hideout setVariable ["id",(_x select 1)];
_hideout setVariable ["rinf_time",(_x select 2)];
_hideout setVariable ["cap_time",(_x select 3)];
_hideout setVariable ["assigned_to",(_x select 4)];
_hideout setVariable ["assigned_to", btc_city_all select (_x select 4)];

_hideout addEventHandler ["HandleDamage", btc_fnc_mil_hd_hideout];

Expand Down Expand Up @@ -110,8 +110,8 @@ _array_ho = profileNamespace getVariable [format ["btc_hm_%1_ho",_name],[]];
btc_hideouts = btc_hideouts + [_hideout];
} foreach _array_ho;

_ho = profileNamespace getVariable [format ["btc_hm_%1_ho_sel",_name],objNull];
btc_hq setVariable ["info_hideout",_ho];
_ho = profileNamespace getVariable [format ["btc_hm_%1_ho_sel",_name],0];
btc_hq setVariable ["info_hideout", btc_hideouts select _ho];

if (count btc_hideouts == 0) then {[] execVM "core\fnc\common\final_phase.sqf";};

Expand Down
4 changes: 2 additions & 2 deletions =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/save.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ _array_ho = [];
_data pushBack (_x getVariable ["id",0]);
_data pushBack (_x getVariable ["rinf_time",0]);
_data pushBack (_x getVariable ["cap_time",0]);
_data pushBack (_x getVariable ["assigned_to",objNull]);
_data pushBack ((_x getVariable ["assigned_to",objNull]) getVariable "id");

private ["_ho_markers"];
_ho_markers = [];
Expand All @@ -77,7 +77,7 @@ _array_ho = [];
} foreach btc_hideouts;
profileNamespace setVariable [format ["btc_hm_%1_ho",_name],_array_ho];

profileNamespace setVariable [format ["btc_hm_%1_ho_sel",_name],(btc_hq getVariable ["info_hideout",objNull])];
profileNamespace setVariable [format ["btc_hm_%1_ho_sel",_name],(btc_hq getVariable ["info_hideout",objNull]) getVariable ["id",0]];

//CACHE
_array_cache = [];
Expand Down

0 comments on commit 415319c

Please sign in to comment.