Skip to content

Commit

Permalink
Merge pull request #704 from Vdauphin/FIX-objects_could_be_in_the_air
Browse files Browse the repository at this point in the history
FIX: Floating compositions
  • Loading branch information
Vdauphin authored Jun 2, 2019
2 parents fab6358 + 7a7b692 commit 62cf9b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ _array apply {
_obj setDir (_dir + _setdir);

_obj setVectorUp surfaceNormal position _obj;
_obj setPosWorld getPosWorld _obj;
_obj setPosASL _final;
_obj;
};
2 changes: 1 addition & 1 deletion =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/mines.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private _useful = btc_city_all select {!((_x getVariable ["type", ""]) in ["Name
if (_useful isEqualTo []) then {_useful = + btc_city_all;};

private _city = selectRandom _useful;
private _pos = [getPos _city, 0, 500, 30, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos;
private _pos = [getPos _city, 0, 500, 30, false] call btc_fnc_findsafepos;

btc_side_aborted = false;
btc_side_done = false;
Expand Down
2 changes: 1 addition & 1 deletion =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/supply.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (_useful isEqualTo []) then {_useful = + btc_city_all;};

private _city = selectRandom _useful;
private _pos = [getPos _city, 100] call btc_fnc_randomize_pos;
_pos = [_pos, 0, 300, 20, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos;
_pos = [_pos, 0, 300, 20, false] call btc_fnc_findsafepos;

btc_side_aborted = false;
btc_side_done = false;
Expand Down

0 comments on commit 62cf9b7

Please sign in to comment.