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. :-)