From 450a18e13a8046ada57df03e9089f9f89acce6f6 Mon Sep 17 00:00:00 2001 From: VKing Date: Sat, 19 Dec 2015 21:29:37 +0100 Subject: [PATCH] Forgot to disable in case the setting's set to "no" (but why would you ever want to --- addons/mk6mortar/XEH_getIn.sqf | 3 +++ addons/mk6mortar/XEH_initPost.sqf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/addons/mk6mortar/XEH_getIn.sqf b/addons/mk6mortar/XEH_getIn.sqf index 16a14ee9f7..5d7fd62484 100644 --- a/addons/mk6mortar/XEH_getIn.sqf +++ b/addons/mk6mortar/XEH_getIn.sqf @@ -12,4 +12,7 @@ if (!EGVAR(common,settingsInitFinished)) exitWith { }; }, _mortar]; }; + +if (!GVAR(useAmmoHandling)) exitWith {}; + _mortar call FUNC(mortarInit); diff --git a/addons/mk6mortar/XEH_initPost.sqf b/addons/mk6mortar/XEH_initPost.sqf index 08c8edde6c..dd06b48993 100644 --- a/addons/mk6mortar/XEH_initPost.sqf +++ b/addons/mk6mortar/XEH_initPost.sqf @@ -12,4 +12,7 @@ if (!EGVAR(common,settingsInitFinished)) exitWith { }; }, _this]; }; + +if (!GVAR(useAmmoHandling)) exitWith {}; + _this call FUNC(mortarInit);