Removed unnecessary line

This commit is contained in:
Glowbal 2015-03-18 18:17:42 +01:00
parent 62460e8b79
commit be4ba6144f
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,6 @@ if (!(_target isKindOf "CaManBase") || !(_caller isKindOf "CaManBase")) exitwith
if (vehicle _caller != _caller || vehicle _target != _target) exitwith {};
if (!([_caller] call EFUNC(common,canInteract)) || {_caller == _target} || {(([_target] call EFUNC(common,isAwake)))}) exitwith {};
_caller action ["WeaponOnBack", _caller];
if (!alive _target) exitwith {
if (GVAR(allowDeadBodyMovement)) then {
[{

View File

@ -85,9 +85,10 @@ clearWeaponCargoGlobal (backpackContainer _newUnit);
_newUnit selectWeapon (primaryWeapon _newUnit);
// TODO sometimes the old body does not get cleaned up properly. Look into garbage collection.
// TODO sometimes the old body does not get cleaned up properly.
// TODO Maybe it is better to hide the body, attach it as well, and remove the copy once we are done with it instead?
deleteVehicle _oldBody;
_newUnit setDamage 0.89;
_newUnit
_newUnit;