A3Antistasi / antistasi-1.x

Antistasi Unofficial Community old version
http://a3antistasi.enjin.com/
39 stars 44 forks source link

Destroying all radio towers makes zones unconquerable #311

Closed Blakmane closed 6 years ago

Blakmane commented 6 years ago

Once you have destroyed all radio towers in a mission, it isn't possible to capture zones (the flag changes but the map does not update and no QRF is sent).

The following error is associated with this bug:

Error in expression <cion] call BIS_fnc_nearestPosition;
if (getPos _antenna distance _posicion < 100>
  Error position: <getPos _antenna distance _posicion < 100>
  Error getpos: Type Array, expected Object,Location

And when I comment out the following code in mrkWIN.sqf, this issue is resolved:

_antenna = [antenas,_posicion] call BIS_fnc_nearestPosition;
if (getPos _antenna distance _posicion < 100) then {
    [_bandera,"jam"] remoteExec ["AS_fnc_addActionMP"];
};

So, looks like the function is searching for an antenna, not finding one because they are all destroyed, and then exiting without spawning QRF or properly handing over control of the zone to FIA.

StefArma commented 6 years ago

Great! thanks for that precise report, i'll check it when i'll be back!

wurzel0701 commented 6 years ago

Pull request (#321) opened, this should fix it