From a0e72f6c14e3f676fda57a7b0e43b7b0256b426a Mon Sep 17 00:00:00 2001 From: Elgin675 Date: Tue, 3 Nov 2020 13:25:48 +0100 Subject: [PATCH 1/2] Translation - Add french `STR_CBA_AI_InvisibleTarget` keys in 'ai' module --- addons/ai/stringtable.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/ai/stringtable.xml b/addons/ai/stringtable.xml index 9b4411257..3934e93d6 100644 --- a/addons/ai/stringtable.xml +++ b/addons/ai/stringtable.xml @@ -28,10 +28,12 @@ Invisible Target Vehicle Unsichtbares Ziel - Fahrzeug + VĂ©hicule cible invisible Invisible Target Airplane Unsichtbares Ziel - Flugzeug + Avion cible invisible From 22fd9409ff6070dedc50ba5d072ea4796c2f02d6 Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Mon, 9 Nov 2020 23:16:35 +0100 Subject: [PATCH 2/2] Fix statemachine conditions using global variables --- addons/statemachine/script_component.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/statemachine/script_component.hpp b/addons/statemachine/script_component.hpp index bb3c66eba..159e27563 100644 --- a/addons/statemachine/script_component.hpp +++ b/addons/statemachine/script_component.hpp @@ -20,7 +20,7 @@ #define ONSTATEENTERED(var) (var + "_onStateEntered") #define ONSTATELEAVING(var) (var + "_onStateLeaving") #define GET_FUNCTION(var,cfg) private var = getText (cfg); \ - if (isNil var) then { \ + if (isNil var || {!((missionNamespace getVariable var) isEqualType {})}) then { \ var = compile var; \ } else { \ var = missionNamespace getVariable var;\