fixed to use proper 4-space tabbing

This commit is contained in:
Niko Lehtovirta 2015-04-11 20:36:38 +03:00
parent 0e0935ac01
commit 4b50d760e9
3 changed files with 14 additions and 29 deletions

View File

@ -32,23 +32,17 @@ GVAR(Module) = true;
if (isServer) then {
if (GVAR(RemoveDeadBodiesDisconnected)) then {
addMissionEventHandler ["HandleDisconnect",
{
[
{
_unit = _this select 0;
addMissionEventHandler ["HandleDisconnect", {
[{
_unit = _this select 0;
if (!alive _unit) then {
deleteVehicle _unit;
};
if (!alive _unit) then {
deleteVehicle _unit;
};
},
_this,
4,
1
] call EFUNC(common,waitAndExecute);
false
}
];
_this, 4, 1] call EFUNC(common,waitAndExecute);
false
}];
};
};

View File

@ -37,8 +37,7 @@ if (count _position == 0) then {_position = getPosATL _unit};
_position set [2, 0];
[
{
[{
_rallypoint = _this select 0;
_unit = _this select 1;
_position = _this select 2;
@ -54,8 +53,5 @@ _position set [2, 0];
*/
[localize "STR_ACE_Respawn_Deploy"] call EFUNC(common,displayTextStructured);
},
[_rallypoint, _unit, _position, _rallypoint],
5,
1
] call EFUNC(common,waitAndExecute);
},
[_rallypoint, _unit, _position, _rallypoint], 5, 1] call EFUNC(common,waitAndExecute);

View File

@ -29,13 +29,8 @@ if (_forceRemove) then {
_bodyRemoveTimer = 2;
};
[
{
[{
// hideBody takes ~20s till body is fully underground
// a better hideBody would make this more aesthetic
deleteVehicle _this;
},
_body,
_bodyRemoveTimer,
1
] call EFUNC(common,waitAndExecute);
}, _body, _bodyRemoveTimer, 1] call EFUNC(common,waitAndExecute);