Skip to content

Commit

Permalink
Fixed Texturing
Browse files Browse the repository at this point in the history
  • Loading branch information
AdlerSalbei committed Dec 2, 2018
1 parent 9b8d73f commit 4200585
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/trenches/CfgWorlds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions addons/trenches/functions/fnc_getSurfaceTexturePath.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 4200585

Please sign in to comment.