X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fdme.cxx;h=ed3615298d7f789b2ab3bd18e88024f51da52ac5;hb=fee003e8cc17f0aa9a1e9280dd823d20e231e967;hp=cf9f66731b5742da3795ea00133dd41e74e9684d;hpb=90c5f1f22de5eb058eae29d4422248b7fb2f4913;p=flightgear.git diff --git a/src/Cockpit/dme.cxx b/src/Cockpit/dme.cxx index cf9f66731..ed3615298 100644 --- a/src/Cockpit/dme.cxx +++ b/src/Cockpit/dme.cxx @@ -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;