1
0
forked from mirrors/0ad

Support the <float/> property in actors

This was SVN commit r7883.
This commit is contained in:
Ykkrosh
2010-08-09 01:28:13 +00:00
parent 422da1aef0
commit c728aa972c
5 changed files with 8 additions and 6 deletions
@@ -318,7 +318,9 @@ void CCmpVisualActor::Interpolate(const CSimContext& context, float frameTime, f
m_Hidden = false;
CMatrix3D transform(cmpPosition->GetInterpolatedTransform(frameOffset));
bool floating = m_Unit->GetObject().m_Base->m_Properties.m_FloatOnWater;
CMatrix3D transform(cmpPosition->GetInterpolatedTransform(frameOffset, floating));
m_Unit->GetModel().SetTransform(transform);
m_Unit->UpdateModel(frameTime);