]> git.mxchange.org Git - flightgear.git/commitdiff
replace 'innovative' clamping method with something more traditional
authormfranz <mfranz>
Sun, 12 Feb 2006 14:17:30 +0000 (14:17 +0000)
committermfranz <mfranz>
Sun, 12 Feb 2006 14:17:30 +0000 (14:17 +0000)
src/ATC/AIMgr.cxx

index ea4e4e16905600689abe96af6c5dc17c14927bb1..2263f475934a1cddadcf6c7749ab19d249f6214c 100644 (file)
@@ -375,7 +375,10 @@ void FGAIMgr::GenerateSimpleAirportTraffic(const string& ident, double min_dist)
        double d = dclGetHorizontalSeparation(userpos, aptpos); // in meters
        
        int lev = fgGetInt("/sim/ai-traffic/level");
-       if(lev < 1 || lev > 3) lev = 2;
+       if(lev < 1)
+               return;
+       if (lev > 3)
+               lev = 3;
        if(visibility < 6000) lev = 1;
        //cout << "level = " << lev << '\n';