This commit is contained in:
second_coming 2016-04-09 19:28:01 +01:00
parent d414888384
commit 38b0279cc8

View File

@ -20,8 +20,8 @@ if(SC_debug) then
// Select a replacement driver
_vehicle removeAllMPEventHandlers "mphit";
_group = group _vehicle;
[_deadDriver] join grpNull;
// Remove dead units from the group
{
if(!alive _x) then { [_x] join grpNull; };
}forEach units _group;
@ -68,7 +68,7 @@ if(count units _group > 0) then
if(damage _vehicle > 0) then
{
[_driver] call SC_fnc_repairVehicle;
[_vehicle] call SC_fnc_repairVehicle;
};
}