From 2d46feacf79c5f08349ba6cf6b15311592d1edde Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 17 Oct 2023 22:18:09 -0500 Subject: [PATCH 1/2] Zeus - Fix trench module on clients --- addons/zeus/functions/fnc_moduleLayTrench.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/zeus/functions/fnc_moduleLayTrench.sqf b/addons/zeus/functions/fnc_moduleLayTrench.sqf index e92725138fe..bc71803b577 100644 --- a/addons/zeus/functions/fnc_moduleLayTrench.sqf +++ b/addons/zeus/functions/fnc_moduleLayTrench.sqf @@ -27,6 +27,9 @@ if !(["ace_trenches"] call EFUNC(common,isModLoaded)) exitWith { [LSTRING(RequiresAddon)] call FUNC(showMessage); }; +if (_logic getVariable [QGVAR(ran), false]) exitWith { WARNING("double run?") }; +_logic setVariable [QGVAR(ran), true]; + private _drawCode = { params ["_object", "_mousePos"]; private _startPos = getPos _object; From e4dec09fbb1437aa6945b14969a8e60c947751e1 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Wed, 18 Oct 2023 11:56:42 -0500 Subject: [PATCH 2/2] Update addons/zeus/functions/fnc_moduleLayTrench.sqf --- addons/zeus/functions/fnc_moduleLayTrench.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/zeus/functions/fnc_moduleLayTrench.sqf b/addons/zeus/functions/fnc_moduleLayTrench.sqf index bc71803b577..fe4e29b62ce 100644 --- a/addons/zeus/functions/fnc_moduleLayTrench.sqf +++ b/addons/zeus/functions/fnc_moduleLayTrench.sqf @@ -27,7 +27,7 @@ if !(["ace_trenches"] call EFUNC(common,isModLoaded)) exitWith { [LSTRING(RequiresAddon)] call FUNC(showMessage); }; -if (_logic getVariable [QGVAR(ran), false]) exitWith { WARNING("double run?") }; +if (_logic getVariable [QGVAR(ran), false]) exitWith {}; _logic setVariable [QGVAR(ran), true]; private _drawCode = {