1
0
forked from mirrors/0ad

Fix entity ID association with animations. Fixes #790.

This was SVN commit r9286.
This commit is contained in:
Ykkrosh
2011-04-20 00:04:05 +00:00
parent 6d946cc58d
commit 91ad17c685
4 changed files with 19 additions and 1 deletions
+7
View File
@@ -70,6 +70,13 @@ void CUnit::UpdateModel(float frameTime)
m_Animation->Update(frameTime*1000.0f);
}
void CUnit::SetID(entity_id_t id)
{
m_ID = id;
if (m_Animation)
m_Animation->SetEntityID(id);
}
void CUnit::SetEntitySelection(const CStr& selection)
{
CStr selection_lc = selection.LowerCase();