Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 authored Dec 8, 2018
1 parent 13fc4da commit 2962b86
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions addons/trenches/functions/fnc_initTrench.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
*/

params [
["_object", objNull, [objNull]]
["_object", objNull, [objNull]]
];
if (isServer) then {
_object setVariable [QGVAR(progress), 1, true];
_object setVariable [QGVAR(progress), 1, true];
};

if (is3DEN) exitWith {
[_object] call FUNC(initTrench3DEN);
[_object] call FUNC(initTrench3DEN);
};

if (local _object) then {
// Has to be spawned to ensure MP compatibility
[{
private _texture = [_this select 0] call FUNC(getSurfaceTexturePath);
(_this select 0) setObjectTextureGlobal [0, _texture];
}, [_this]] call CBA_fnc_execNextFrame;
// Has to be spawned to ensure MP compatibility
[{
private _texture = [_this select 0] call FUNC(getSurfaceTexturePath);
(_this select 0) setObjectTextureGlobal [0, _texture];
}, [_this]] call CBA_fnc_execNextFrame;
};

0 comments on commit 2962b86

Please sign in to comment.