From 568ef50c02f896673a75f467be8f1133948bc458 Mon Sep 17 00:00:00 2001 From: commy2 Date: Sat, 4 Nov 2017 17:05:33 +0100 Subject: [PATCH] simplify some code (#5727) --- addons/common/functions/fnc_fixPosition.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/common/functions/fnc_fixPosition.sqf b/addons/common/functions/fnc_fixPosition.sqf index b00c08f25a..3eaf7665cd 100644 --- a/addons/common/functions/fnc_fixPosition.sqf +++ b/addons/common/functions/fnc_fixPosition.sqf @@ -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;