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
master
hybrid 2007-06-29 15:55:36 +00:00
parent 9603bbfcdf
commit 6ae1881a86
1 changed files with 3 additions and 2 deletions

View File

@ -178,8 +178,9 @@ namespace core
//! false if it is backfacing.
bool isFrontFacing(const vector3d<T>& lookDirection) const
{
vector3d<T> n = getNormal().normalize();
return F32_LOWER_EQUAL_0(n.dotProduct(lookDirection));
const vector3d<T> n = getNormal().normalize();
const f32 d = (f32)n.dotProduct(lookDirection);
return F32_LOWER_EQUAL_0(d);
}
//! Returns the plane of this triangle.