]> git.mxchange.org Git - flightgear.git/commitdiff
Improve handling of type DOUBLE in generic i/o protocol.
authorehofman <ehofman>
Wed, 10 Feb 2010 08:19:05 +0000 (08:19 +0000)
committerTim Moore <timoore33@gmail.com>
Wed, 10 Feb 2010 14:02:49 +0000 (15:02 +0100)
src/Network/generic.cxx

index 487ff67aec7575dbdf3c06135805f4163b5f1358..423d2be189b28ffec2de641415dc99ab3b1bdcfb 100644 (file)
@@ -240,8 +240,8 @@ bool FGGeneric::gen_message_ascii() {
 
         case FG_DOUBLE:
             val = _out_message[i].offset +
-                _out_message[i].prop->getFloatValue() * _out_message[i].factor;
-            snprintf(tmp, 255, _out_message[i].format.c_str(), (float)val);
+                _out_message[i].prop->getDoubleValue() * _out_message[i].factor;
+            snprintf(tmp, 255, _out_message[i].format.c_str(), (double)val);
             break;
 
         default: // SG_STRING