You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ((ufo->getMissionType() != "STR_ALIEN_RETALIATION" && !Options::aggressiveRetaliation) || // only UFOs on retaliation missions actively scan for bases
1002
1002
ufo->getTrajectory().getID() == "__RETALIATION_ASSAULT_RUN" || // UFOs attacking a base don't detect!
1003
1003
ufo->isCrashed() || // Crashed UFOs don't detect!
1004
-
_base.getDistance(ufo) >= 80 * (1 / 60.0) * (M_PI / 180.0)) // UFOs have a detection range of 80 XCOM units.
1004
+
_base.getDistance(ufo) >= ufo->getRules()->getSightRange() * (1 / 60.0) * (M_PI / 180.0)) // UFOs have a detection range of 80 XCOM units. - we use a great circle fomrula and nautical miles.
0 commit comments