From: mfranz Date: Thu, 27 Jul 2006 17:12:37 +0000 (+0000) Subject: SGMiscf isn't known yet: add workaround X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a482acf8f224fa8888a438becbc346cbbb5ca53;p=flightgear.git SGMiscf isn't known yet: add workaround --- diff --git a/src/Cockpit/hud.hxx b/src/Cockpit/hud.hxx index 3964bacd5..fe36c250f 100644 --- a/src/Cockpit/hud.hxx +++ b/src/Cockpit/hud.hxx @@ -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. :-)