diff --git a/source/Irrlicht/CBillboardSceneNode.cpp b/source/Irrlicht/CBillboardSceneNode.cpp index d4193d3..ed5cf97 100644 --- a/source/Irrlicht/CBillboardSceneNode.cpp +++ b/source/Irrlicht/CBillboardSceneNode.cpp @@ -164,7 +164,7 @@ void CBillboardSceneNode::setSize(const core::dimension2d& size) if (core::equals(Size.Height, 0.0f)) Size.Height = 1.0f; - const f32 extent = 0.5f*sqrt(Size.Width*Size.Width + Size.Height*Size.Height); + const f32 extent = 0.5f*sqrtf(Size.Width*Size.Width + Size.Height*Size.Height); BBoxSafe.MinEdge.set(-extent,-extent,-extent); BBoxSafe.MaxEdge.set(extent,extent,extent); } @@ -184,7 +184,7 @@ void CBillboardSceneNode::setSize(f32 height, f32 bottomEdgeWidth, f32 topEdgeWi TopEdgeWidth = 1.0f; } - const f32 extent = 0.5f*sqrt(Size.Width*Size.Width + Size.Height*Size.Height); + const f32 extent = 0.5f*sqrtf(Size.Width*Size.Width + Size.Height*Size.Height); BBoxSafe.MinEdge.set(-extent,-extent,-extent); BBoxSafe.MaxEdge.set(extent,extent,extent); }