diff --git a/addons/novehicleclanlogo/functions/fnc_removeClanLogo.sqf b/addons/novehicleclanlogo/functions/fnc_removeClanLogo.sqf index 0b35e608fc..758b521edb 100644 --- a/addons/novehicleclanlogo/functions/fnc_removeClanLogo.sqf +++ b/addons/novehicleclanlogo/functions/fnc_removeClanLogo.sqf @@ -19,7 +19,11 @@ params ["_vehicle"]; private _selectionClan = getText (configOf _vehicle >> "selectionClan"); if !(_selectionClan in selectionNames _vehicle) exitWith { - TRACE_2("vehicle does not have 'selectionClan' selection",_vehicle,_selectionLogo); + TRACE_2("vehicle does not have 'selectionClan' selection",_vehicle,_selectionClan); +}; + +if (_vehicle getVariable [QEGVAR(tagging,hasTag), false]) exitWith { + TRACE_1("vehicle has tag applied",_vehicle); }; TRACE_1("replacing clan logo with empty texture",_vehicle); diff --git a/addons/tagging/functions/fnc_createTag.sqf b/addons/tagging/functions/fnc_createTag.sqf index 4c29ad0f09..6e02d8a1a0 100644 --- a/addons/tagging/functions/fnc_createTag.sqf +++ b/addons/tagging/functions/fnc_createTag.sqf @@ -32,6 +32,7 @@ if (_texture == "") exitWith { if (_isVehicleTag) exitWith { TRACE_3("tagging vehicle",_object,typeOf _object,_texture); _object setObjectTextureGlobal [getText (configOf _object >> "selectionClan"), _texture]; + _object setVariable [QGVAR(hasTag), true, true]; // if (_material != "") then { _object setObjectMaterialGlobal ["clan", _material] }; // ?? ["ace_tagCreated", [objNull, _texture, _object, _unit]] call CBA_fnc_globalEvent; };