bugfix, wrongly assigned value to a local variable (copy/paste bug).

Thanks binofet, see http://continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=366
This commit is contained in:
ejcoumans
2007-06-28 00:05:14 +00:00
parent cad28a8b35
commit a0c5401033

View File

@@ -115,11 +115,11 @@ btScalar btHeightfieldTerrainShape::getHeightFieldValue(int x,int y) const
btScalar val = 0.f;
if (m_useFloatData)
{
btScalar val = m_heightfieldDataFloat[(y*m_width)+x];
val = m_heightfieldDataFloat[(y*m_width)+x];
} else
{
unsigned char heightFieldValue = m_heightfieldDataUnsignedChar[(y*m_width)+x];
btScalar val = heightFieldValue* (m_maxHeight/btScalar(65535));
val = heightFieldValue* (m_maxHeight/btScalar(65535));
}
return val;
}