Local check before setPosition

This commit is contained in:
VKing 2016-01-16 01:13:01 +01:00
parent 17aaf477fe
commit e3123b3f56

View File

@ -38,9 +38,11 @@ GVAR(CurrentSpeedDial) = 0;
// Properly angle preplaced bottom-attack SLAMs
{
switch (typeOf _x) do {
case ("ACE_SLAMDirectionalMine_Magnetic_Ammo"): {
[_x, getDir _x, 90] call FUNC(setPosition);
if (local _x) then {
switch (typeOf _x) do {
case ("ACE_SLAMDirectionalMine_Magnetic_Ammo"): {
[_x, getDir _x, 90] call FUNC(setPosition);
};
};
};
} forEach allMines;