Skip to content

Commit 17945ab

Browse files
committedNov 30, 2018
Some fixes
1 parent ec9b458 commit 17945ab

File tree

4 files changed

+3
-40
lines changed

4 files changed

+3
-40
lines changed
 

‎addons/trenches/XEH_PREP.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ PREP(placeTrench);
2525
PREP(progressBar);
2626
PREP(removeCamouflage);
2727
PREP(removeTrench);
28-
PREP(setTrenchPlacement);
2928

3029
if ("surfaceTexture" in (uiNamespace getVariable ["Intercept_cba_capabilities",[]])) then {
3130
#ifdef DISABLE_COMPILE_CACHE

‎addons/trenches/functions/fnc_automaticFilePath.sqf

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#include "script_component.hpp"
22

3-
diag_log "Starting Automatic!";
4-
5-
if (isText (configFile >> "CfgWorlds" >> worldName >> "surfaceTextureBasePath")) exitWith {};
3+
if ((isText (configFile >> "CfgWorlds" >> worldName >> "surfaceTextureBasePath")) || ("surfaceTexture" in (uiNamespace getVariable ["Intercept_cba_capabilities",[]]))) exitWith {};
64
private _config = configfile >> "CfgWorlds" >> worldName >> "OutsideTerrain" >> "Layers" >> "Layer0" >> "texture";
75
if !(isText (_config)) exitWith {
86
diag_log format ["GRAD Trenches: Found no OutsideTerrain texture for Map %1, automatic file path not possible!", worldName];

‎addons/trenches/functions/fnc_setTrenchPlacement.sqf

-33
This file was deleted.

‎addons/trenches/script_component.hpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#define COMPONENT trenches
22
#define COMPONENT_BEAUTIFIED Trenches
33
#include "\z\ace\addons\main\script_mod.hpp"
4+
#include "\z\ace\addons\main\script_macros.hpp"
45

56
#define DEBUG_MODE_FULL
67
#define DISABLE_COMPILE_CACHE
@@ -17,6 +18,4 @@
1718
#define DEFAULT_TEXTURE QPATHTOEF(apl,data\zr_plevel_co.paa)
1819
#define CAMOUFLAGE_DURATION 5
1920
#define CAMOUFLAGE_3DEN_ATTRIBUTE QGVAR(camouflageTrench)
20-
#define IS_TRENCH(OBJ) ((!isNull OBJ) && {isText (configFile >> "CfgVehicles" >> typeOf OBJ >> QGVAR(noGeoClass))})
21-
22-
#include "\z\ace\addons\main\script_macros.hpp"
21+
#define IS_TRENCH(OBJ) ((!isNull OBJ) && {isArray (configFile >> "CfgVehicles" >> typeOf OBJ >> QGVAR(camouflagePositions))})

0 commit comments

Comments
 (0)