From 4200585b94d98d00220565297fe1b2bba49221a5 Mon Sep 17 00:00:00 2001 From: Salbei Date: Sun, 2 Dec 2018 17:54:15 +0100 Subject: [PATCH] Fixed Texturing --- addons/trenches/CfgWorlds.hpp | 2 +- addons/trenches/functions/fnc_getSurfaceTexturePath.sqf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/trenches/CfgWorlds.hpp b/addons/trenches/CfgWorlds.hpp index 3e821af117d..caabeafbee5 100644 --- a/addons/trenches/CfgWorlds.hpp +++ b/addons/trenches/CfgWorlds.hpp @@ -291,7 +291,7 @@ class CfgWorlds { class Stratis { surfaceTextureBasePath = "a3\map_data"; filePrefix = "co.paa"; - camouflageObjects[] = {"A3\plants_f\Clutter\c_Thistle_Thorn_Brown.p3d"}; + camouflageObjects[] = {"A3\plants_f\Clutter\c_Thistle_Thorn_Brown.p3d"}; }; //Takistan diff --git a/addons/trenches/functions/fnc_getSurfaceTexturePath.sqf b/addons/trenches/functions/fnc_getSurfaceTexturePath.sqf index 229337dcda2..6ba3abc9064 100644 --- a/addons/trenches/functions/fnc_getSurfaceTexturePath.sqf +++ b/addons/trenches/functions/fnc_getSurfaceTexturePath.sqf @@ -54,13 +54,13 @@ private _result = if !(isNil QGVAR(automaticFileSetup)) then { if ((_surfaceType find "#Gdt" == -1) || {worldName == "Tanoa"}) then { _basePath = getText (configFile >> "CfgWorlds" >> worldName >> "surfaceTextureBasePath") }; - + [_surfaceType, _basePath, getText(configFile >> "CfgWorlds" >> worldName >> "filePrefix")] call _getTexturePath; }; -if (isNil _result || _result isEqualTo []) then { - _result = DEFAULT_TEXTURE; +if !(_result isEqualType "") then { diag_log format ["GRAD_Trenches: Type: %1, Position: %2, WorldName: %3, SurfaceType: %4, Texture: %5", (typeof _object), (position _object), worldName, _surfaceType, _result]; + _result = DEFAULT_TEXTURE; }; _result;