Make Pull # compatible with Pull #42

This commit is contained in:
Malcolm Robb 2014-10-02 21:08:57 +01:00
parent 16a900c667
commit 4f449a8d44

View file

@ -2052,7 +2052,8 @@ int decodeCPR(struct aircraft *a, int fflag, int surface) {
}
// Check to see that the latitude is in range: -90 .. +90
if (rlat0 < -90 || rlat0 > 90 || rlat1 < -90 || rlat1 > 90) return;
if (rlat0 < -90 || rlat0 > 90 || rlat1 < -90 || rlat1 > 90)
return (-1);
// Check that both are in the same latitude zone, or abort.
if (cprNLFunction(rlat0) != cprNLFunction(rlat1))