Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
5H1N0B11 committed Mar 28, 2019
1 parent fb8ae7a commit 471f6ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Mirage-2000/Nasal/RADAR/radar2.nas
Original file line number Diff line number Diff line change
Expand Up @@ -1221,12 +1221,10 @@ var RWR_APG = {
me.dev = math.abs(geo.normdeg180(me.deviation));
if (me.u.get_display()) {
me.show = 1;#in radar cone
} elsif(me.u.get_model()=="AI" and me.rn < 55) {
me.show = 1;#non MP always has transponder on.
} elsif (me.trAct != nil and me.trAct.getValue() != -9999 and me.rn < 55) {
} elsif(me.HasTransponderOn(me.u)){
# transponder on
me.show = 1;
} else {
}else{
me.rdrAct = me.u.propNode.getNode("sim/multiplay/generic/int[2]");
if (((me.rdrAct != nil and me.rdrAct.getValue()!=1) or me.rdrAct == nil) and math.abs(geo.normdeg180(me.deviation)) < 60 and me.NotBeyondHorizon(me.u) and me.isNotBehindTerrain(me.u) ) {
# we detect its radar is pointed at us and active
Expand Down

0 comments on commit 471f6ed

Please sign in to comment.