1
0
forked from mirrors/0ad
This was SVN commit r13550.
This commit is contained in:
leper
2013-07-11 23:58:54 +00:00
parent d5897854be
commit 91effd1ad1
+1 -1
View File
@@ -408,7 +408,7 @@ void CModel::ValidatePosition()
{
float objTerrain = cmpTerrain->GetExactGroundLevel(objTranslation.X, objTranslation.Z);
float propTerrain = cmpTerrain->GetExactGroundLevel(propTranslation.X, propTranslation.Z);
float translateHeight = std::min(prop.m_maxHeigth,
float translateHeight = std::min(prop.m_maxHeight,
std::max(prop.m_minHeight, propTerrain - objTerrain));
CMatrix3D translate = CMatrix3D();
translate.SetTranslation(0.f, translateHeight, 0.f);