Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
emanuel 2024-05-09 16:02:38 +01:00
commit bc3c99e10e
1 changed files with 1 additions and 0 deletions

View File

@ -438,6 +438,7 @@ int lightship_check() {
// Check heading delta > 4º // Check heading delta > 4º
int diff = epv.space.data.heading.value - lightship->last_pos.heading; int diff = epv.space.data.heading.value - lightship->last_pos.heading;
diff += (diff > 1800) ? -3600 : (diff < -1800) ? 3600 : 0;
if (abs(diff) > 40) rv = 1; if (abs(diff) > 40) rv = 1;
if (!rv) { if (!rv) {