Replace driver by effectivCommander on EFUNC(common,getGunner) and EFUNC(common,firedEH)

This commit is contained in:
esteldunedain 2016-02-13 15:04:43 -03:00
parent b6058242c8
commit e2ed38609d
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ if (_unit isKindOf "CAManBase") then {
} count allTurrets [_unit, true];
// Ensure that at least the pilot is returned if there is no gunner
if (isManualFire _unit && {isNull _gunner}) then {
_gunner = driver _unit;
_gunner = effectiveCommander _unit;
};
if (_gunner == ACE_player) then {

View File

@ -30,7 +30,7 @@ private _gunner = objNull;
// ensure that at least the pilot is returned if there is no gunner
if (isManualFire _vehicle && {isNull _gunner}) then {
_gunner = driver _vehicle;
_gunner = effectiveCommander _vehicle;
};
_gunner