]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/dme.cxx
Melchior FRANZ:
[flightgear.git] / src / Cockpit / dme.cxx
index cf9f66731b5742da3795ea00133dd41e74e9684d..ed3615298d7f789b2ab3bd18e88024f51da52ac5 100644 (file)
@@ -2,7 +2,7 @@
 //
 // Written by Curtis Olson, started April 2000.
 //
-// Copyright (C) 2000  Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2000  Curtis L. Olson - http://www.flightgear.org/~curt
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -160,10 +160,10 @@ FGDME::update(double dt)
             SGTimeStamp current_time;
             station = Point3D( x, y, z );
             dist = aircraft.distance3D( station ) * SG_METER_TO_NM;
-            cout << "dist = " << dist << endl;
             dist -= bias;
-            cout << "  bias = " << bias << endl;
-            cout << "    dist = " << dist << endl;
+            if ( dist < 0.0 ) {
+                dist = 0.0;
+            }
 
             current_time.stamp();
             long dMs = (current_time - last_time) / 1000;