Commit 6ae1881a authored by hybrid's avatar hybrid

Fix the macro parameter to f32 to work correctly.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@744 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9603bbfc
...@@ -178,8 +178,9 @@ namespace core ...@@ -178,8 +178,9 @@ namespace core
//! false if it is backfacing. //! false if it is backfacing.
bool isFrontFacing(const vector3d<T>& lookDirection) const bool isFrontFacing(const vector3d<T>& lookDirection) const
{ {
vector3d<T> n = getNormal().normalize(); const vector3d<T> n = getNormal().normalize();
return F32_LOWER_EQUAL_0(n.dotProduct(lookDirection)); const f32 d = (f32)n.dotProduct(lookDirection);
return F32_LOWER_EQUAL_0(d);
} }
//! Returns the plane of this triangle. //! Returns the plane of this triangle.
......
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