diff --git a/SQF/dayz_code/Configs/CfgVehicles/antihack_plants.hpp b/SQF/dayz_code/Configs/CfgVehicles/antihack_plants.hpp index b8602dd32..763d30ca0 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/antihack_plants.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/antihack_plants.hpp @@ -1,7 +1,7 @@ // check that plants libs are properly loaded // thanks to Tansien - class faplants : House {}; + class faplants : HouseBase {}; class grass: faplants { model = "\ca\data\cl_grass1.p3d"; diff --git a/SQF/dayz_code/Configs/cfgVehicles.hpp b/SQF/dayz_code/Configs/cfgVehicles.hpp index fd0ec8431..0df4c77f4 100644 --- a/SQF/dayz_code/Configs/cfgVehicles.hpp +++ b/SQF/dayz_code/Configs/cfgVehicles.hpp @@ -10,13 +10,12 @@ class CfgVehicles { #include "CfgVehicles\Zeds\PlayerZeds.hpp" #include "CfgVehicles\Females\females.hpp" #include "CfgVehicles\antihack_logic.hpp" - #include "CfgVehicles\antihack_plants.hpp" class All; class HouseBase; class Ruins: HouseBase {}; - + #include "CfgVehicles\antihack_plants.hpp" #include "CfgVehicles\DZE\Doors.hpp" class AllVehicles; diff --git a/SQF/dayz_code/system/BIS_Effects/airdestruction.sqf b/SQF/dayz_code/system/BIS_Effects/airdestruction.sqf index e49018e1e..8c62ae2fd 100644 --- a/SQF/dayz_code/system/BIS_Effects/airdestruction.sqf +++ b/SQF/dayz_code/system/BIS_Effects/airdestruction.sqf @@ -24,9 +24,7 @@ if(local _v AND{(_v isKindOf"Air")})then{ if(!isDedicated)then{ while{_i<1200&&((velocity _v select 2)<-20||(getPosATL _v select 2)>8)&&!(alive _v)&&!(isnull _v)&&(getPosATL _v select 2)>1}do{ _tv=abs(velocity _v select 0)+abs(velocity _v select 1)+abs(velocity _v select 2); - if(_tv>2)then{ - _dr=1/_tv}else{ - _dr=1}; + _dr=if(_tv>2)then{1/_tv}else{1}; _fl setDropInterval _dr; _sm setDropInterval _dr; _i=_i+1;