From 8a482acf8f224fa8888a438becbc346cbbb5ca53 Mon Sep 17 00:00:00 2001
From: mfranz <mfranz>
Date: Thu, 27 Jul 2006 17:12:37 +0000
Subject: [PATCH] SGMiscf isn't known yet: add workaround

---
 src/Cockpit/hud.hxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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