mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
simplify some code (#5727)
This commit is contained in:
parent
c20ec6599d
commit
568ef50c02
@ -19,7 +19,7 @@
|
||||
if (!local _this) exitWith {};
|
||||
|
||||
// Objects with disabled simulation and objects with simulation type "house" don't have gravity/physics, so make sure they are not floating
|
||||
private _hasGravity = simulationEnabled _this && {!(getText (configFile >> "CfgVehicles" >> typeOf _this >> "simulation") == "house")};
|
||||
private _hasGravity = simulationEnabled _this && {getText (configFile >> "CfgVehicles" >> typeOf _this >> "simulation") != "house"};
|
||||
|
||||
if (!_hasGravity) then {
|
||||
private _posAbove = (getPosATL _this) select 2;
|
||||
|
Loading…
Reference in New Issue
Block a user