]> git.mxchange.org Git - flightgear.git/commitdiff
display deposit depths < 1mm correctly (although this is rather a
authormfranz <mfranz>
Sun, 19 Feb 2006 13:59:39 +0000 (13:59 +0000)
committermfranz <mfranz>
Sun, 19 Feb 2006 13:59:39 +0000 (13:59 +0000)
theoretical problem :-)

src/Main/metar_main.cxx

index 9cf37f9014f552d3006722f525e84bc6f80270b1..c5ee10d7566875d4ed910dc4777c66dfb360431e 100644 (file)
@@ -269,7 +269,7 @@ void printReport(SGMetar *m)
                if ((s = rwy.getExtentString()) && strlen(s))
                        surface.push_back(s);
                if ((d = rwy.getDepth()) != NaN) {
-                       sprintf(buf, "%.0lf mm", d * 1000.0);
+                       sprintf(buf, "%.1lf mm", d * 1000.0);
                        surface.push_back(buf);
                }
                if ((s = rwy.getFrictionString()) && strlen(s))