Update cam.c

This commit is contained in:
Diogo Jesus 2024-03-21 14:44:19 +00:00
parent 65585ea4a0
commit bb962004d2
1 changed files with 1 additions and 1 deletions

View File

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