Commit 4145d01f authored by hybrid's avatar hybrid

Fixed warnings.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@681 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 23986b2c
...@@ -14,9 +14,9 @@ namespace scene ...@@ -14,9 +14,9 @@ namespace scene
{ {
//! constructor //! constructor
CSphereSceneNode::CSphereSceneNode(f32 Radius, u32 polyCountX, u32 polyCountY, ISceneNode* parent, ISceneManager* mgr, s32 id, CSphereSceneNode::CSphereSceneNode(f32 radius, u32 polyCountX, u32 polyCountY, ISceneNode* parent, ISceneManager* mgr, s32 id,
const core::vector3df& position, const core::vector3df& rotation, const core::vector3df& scale) const core::vector3df& position, const core::vector3df& rotation, const core::vector3df& scale)
: ISceneNode(parent, mgr, id, position, rotation, scale), Radius(Radius), : ISceneNode(parent, mgr, id, position, rotation, scale), Radius(radius),
PolyCountX(polyCountX), PolyCountY(polyCountY) PolyCountX(polyCountX), PolyCountY(polyCountY)
{ {
#ifdef _DEBUG #ifdef _DEBUG
...@@ -144,9 +144,9 @@ void CSphereSceneNode::setSizeAndPolys() ...@@ -144,9 +144,9 @@ void CSphereSceneNode::setSizeAndPolys()
{ {
// calculate points position // calculate points position
const core::vector3df pos(Radius * cos(axz) * sinay, const core::vector3df pos((f32)(Radius * cos(axz) * sinay),
Radius * cos(ay), (f32)(Radius * cos(ay)),
Radius * sin(axz) * sinay); (f32)(Radius * sin(axz) * sinay));
// for spheres the normal is the position // for spheres the normal is the position
core::vector3df normal(pos); core::vector3df normal(pos);
normal.normalize(); normal.normalize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment