diff --git a/addons/disposable/XEH_preInit.sqf b/addons/disposable/XEH_preInit.sqf index a95996f33..f9a63126d 100644 --- a/addons/disposable/XEH_preInit.sqf +++ b/addons/disposable/XEH_preInit.sqf @@ -84,7 +84,7 @@ private _cfgMagazines = configFile >> "CfgMagazines"; WARNING_4("Mass of launcher %1 (%2) is different from mass of used launcher %3 (%4).",_launcher,_massLauncher,_usedLauncher,_massUsedLauncher); }; - if (_massLauncher + _massMagazine != _massLoadedLauncher) then { + if ((abs(_massLauncher + _massMagazine - _massLoadedLauncher)) > 0.011) then { WARNING_7("Sum of mass of launcher %1 and mass of magazine %2 (%3+%4=%5) is different from mass of loaded launcher %6 (%7).",_launcher,_magazine,_massLauncher,_massMagazine,_massLauncher + _massMagazine,_loadedLauncher,_massLoadedLauncher); }; } forEach configProperties [configFile >> "CBA_DisposableLaunchers", "isArray _x"];