Skip to content

Commit

Permalink
MFD: Fixed a newly introduced bug that would reset SCT instead of inc…
Browse files Browse the repository at this point in the history
…rementing it when using OBS #7.
  • Loading branch information
NikolaiVChr committed May 23, 2023
1 parent 4c1723d commit 1dc0fc4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Nasal/MFD/MFD_main.nas
Original file line number Diff line number Diff line change
Expand Up @@ -4711,6 +4711,7 @@ var MFD_Device =
if (me.sensor.fov != me.sensor.fov_desired) {
me.sensor.fov = me.sensor.fov_desired;
me.sensor.reset();
me.sensor.searchCounter = 0;
}
me.sensor.setEnabled(me.sensor.handoffTarget == nil);
me.harmSelected = 1;
Expand Down
1 change: 0 additions & 1 deletion Nasal/radar/apg-68.nas
Original file line number Diff line number Diff line change
Expand Up @@ -2681,7 +2681,6 @@ var RadSensor = {
}
},
reset: func {
me.searchCounter = 0;
me.searchTime = 0;
me.searchStart = systime();
foreach(me.seen;me.vector_aicontacts_seen) {
Expand Down

0 comments on commit 1dc0fc4

Please sign in to comment.