]> git.mxchange.org Git - flightgear.git/commitdiff
SGMiscf isn't known yet: add workaround
authormfranz <mfranz>
Thu, 27 Jul 2006 17:12:37 +0000 (17:12 +0000)
committermfranz <mfranz>
Thu, 27 Jul 2006 17:12:37 +0000 (17:12 +0000)
src/Cockpit/hud.hxx

index 3964bacd579aada857c548899ff0e6e06d348635..fe36c250fe1d41d218c2d12009e0a3b674a41ce0 100644 (file)
@@ -69,7 +69,8 @@ SG_USING_STD(deque);
 SG_USING_STD(vector);
 SG_USING_NAMESPACE(std);
 
-#define float_to_int(v) SGMiscf::roundToInt(v)
+//#define float_to_int(v) SGMiscf::roundToInt(v)
+#define float_to_int(v) int(floorf(v + 0.5f))
 
 // some of Norman's crazy optimizations. :-)