Index: code/trunk/src/modules/overlays/hud/HUDNavigation.cc
===================================================================
--- code/trunk/src/modules/overlays/hud/HUDNavigation.cc	(revision 6417)
+++ code/trunk/src/modules/overlays/hud/HUDNavigation.cc	(revision 6502)
@@ -153,5 +153,5 @@
         int dist = static_cast<int>(getDist2Focus());
         navText_->setCaption(multi_cast<std::string>(dist));
-        float textLength = multi_cast<std::string>(dist).size() * navText_->getCharHeight() * 0.3;
+        float textLength = multi_cast<std::string>(dist).size() * navText_->getCharHeight() * 0.3f;
 
         orxonox::Camera* cam = CameraManager::getInstance().getActiveCamera();
@@ -191,8 +191,8 @@
                 {
                     // up
-                    float position = pos.x / pos.y + 1.0;
-                    navMarker_->setPosition((position - navMarker_->getWidth()) * 0.5, 0.0);
-                    navMarker_->setUV(0.5, 0.0, 1.0, 0.5);
-                    navText_->setLeft((position - textLength) * 0.5);
+                    float position = pos.x / pos.y + 1.0f;
+                    navMarker_->setPosition((position - navMarker_->getWidth()) * 0.5f, 0.0f);
+                    navMarker_->setUV(0.5f, 0.0f, 1.0f, 0.5f);
+                    navText_->setLeft((position - textLength) * 0.5f);
                     navText_->setTop(navMarker_->getHeight());
                 }
@@ -200,9 +200,9 @@
                 {
                     // left
-                    float position = pos.y / pos.x + 1.0;
-                    navMarker_->setPosition(0.0, (position - navMarker_->getWidth()) * 0.5);
-                    navMarker_->setUV(0.0, 0.0, 0.5, 0.5);
-                    navText_->setLeft(navMarker_->getWidth() + 0.01);
-                    navText_->setTop((position - navText_->getCharHeight()) * 0.5);
+                    float position = pos.y / pos.x + 1.0f;
+                    navMarker_->setPosition(0.0f, (position - navMarker_->getWidth()) * 0.5f);
+                    navMarker_->setUV(0.0f, 0.0f, 0.5f, 0.5f);
+                    navText_->setLeft(navMarker_->getWidth() + 0.01f);
+                    navText_->setTop((position - navText_->getCharHeight()) * 0.5f);
                 }
             }
@@ -212,18 +212,18 @@
                 {
                     // down
-                    float position = -pos.x / pos.y + 1.0;
-                    navMarker_->setPosition((position - navMarker_->getWidth()) * 0.5, 1.0 - navMarker_->getHeight());
-                    navMarker_->setUV(0.0, 0.5, 0.5, 1.0);
-                    navText_->setLeft((position - textLength) * 0.5);
-                    navText_->setTop(1.0 - navMarker_->getHeight() - navText_->getCharHeight());
+                    float position = -pos.x / pos.y + 1.0f;
+                    navMarker_->setPosition((position - navMarker_->getWidth()) * 0.5f, 1.0f - navMarker_->getHeight());
+                    navMarker_->setUV(0.0f, 0.5f, 0.5f, 1.0f);
+                    navText_->setLeft((position - textLength) * 0.5f);
+                    navText_->setTop(1.0f - navMarker_->getHeight() - navText_->getCharHeight());
                 }
                 else
                 {
                     // right
-                    float position = -pos.y / pos.x + 1.0;
-                    navMarker_->setPosition(1.0 - navMarker_->getWidth(), (position - navMarker_->getHeight()) * 0.5);
-                    navMarker_->setUV(0.5, 0.5, 1.0, 1.0);
-                    navText_->setLeft(1.0 - navMarker_->getWidth() - textLength - 0.01);
-                    navText_->setTop((position - navText_->getCharHeight()) * 0.5);
+                    float position = -pos.y / pos.x + 1.0f;
+                    navMarker_->setPosition(1.0f - navMarker_->getWidth(), (position - navMarker_->getHeight()) * 0.5f);
+                    navMarker_->setUV(0.5f, 0.5f, 1.0f, 1.0f);
+                    navText_->setLeft(1.0f - navMarker_->getWidth() - textLength - 0.01f);
+                    navText_->setTop((position - navText_->getCharHeight()) * 0.5f);
                 }
             }
@@ -243,15 +243,15 @@
 
             // object is in view
-            navMarker_->setUV(0.0, 0.0, 1.0, 1.0);
-            navMarker_->setLeft((pos.x + 1.0 - navMarker_->getWidth()) * 0.5);
-            navMarker_->setTop((-pos.y + 1.0 - navMarker_->getHeight()) * 0.5);
+            navMarker_->setUV(0.0f, 0.0f, 1.0f, 1.0f);
+            navMarker_->setLeft((pos.x + 1.0f - navMarker_->getWidth()) * 0.5f);
+            navMarker_->setTop((-pos.y + 1.0f - navMarker_->getHeight()) * 0.5f);
 
 /*
             aimMarker_->show();
-            aimMarker_->setLeft((aimpos.x + 1.0 - aimMarker_->getWidth()) * 0.5);
-            aimMarker_->setTop((-aimpos.y + 1.0 - aimMarker_->getHeight()) * 0.5);
-*/
-            navText_->setLeft((pos.x + 1.0 + navMarker_->getWidth()) * 0.5);
-            navText_->setTop((-pos.y + 1.0 + navMarker_->getHeight()) * 0.5);
+            aimMarker_->setLeft((aimpos.x + 1.0f - aimMarker_->getWidth()) * 0.5f);
+            aimMarker_->setTop((-aimpos.y + 1.0f - aimMarker_->getHeight()) * 0.5f);
+*/
+            navText_->setLeft((pos.x + 1.0f + navMarker_->getWidth()) * 0.5f);
+            navText_->setTop((-pos.y + 1.0f + navMarker_->getHeight()) * 0.5f);
         }
     }
Index: code/trunk/src/modules/overlays/hud/HUDRadar.cc
===================================================================
--- code/trunk/src/modules/overlays/hud/HUDRadar.cc	(revision 6417)
+++ code/trunk/src/modules/overlays/hud/HUDRadar.cc	(revision 6502)
@@ -141,12 +141,12 @@
         // calc position on radar...
         Vector2 coord = get2DViewcoordinates(this->owner_->getPosition(), this->owner_->getOrientation() * WorldEntity::FRONT, this->owner_->getOrientation() * WorldEntity::UP, wePointer->getWorldPosition());
-        coord *= Ogre::Math::PI / 3.5; // small adjustment to make it fit the texture
-        panel->setPosition((1.0 + coord.x - size) * 0.5, (1.0 - coord.y - size) * 0.5);
+        coord *= Ogre::Math::PI / 3.5f; // small adjustment to make it fit the texture
+        panel->setPosition((1.0f + coord.x - size) * 0.5f, (1.0f - coord.y - size) * 0.5f);
 
         if (bIsMarked)
         {
             this->marker_->show();
-            this->marker_->setDimensions(size * 1.5, size * 1.5);
-            this->marker_->setPosition((1.0 + coord.x - size * 1.5) * 0.5, (1.0 - coord.y - size * 1.5) * 0.5);
+            this->marker_->setDimensions(size * 1.5f, size * 1.5f);
+            this->marker_->setPosition((1.0f + coord.x - size * 1.5f) * 0.5f, (1.0f - coord.y - size * 1.5f) * 0.5f);
         }
     }
