1
0
forked from mirrors/0ad

apply patch from ticket 1944 added sound attribute to animations to optionally differentiate sound starting point

This was SVN commit r13529.
This commit is contained in:
stwf
2013-07-02 11:44:46 +00:00
parent 377cae15f8
commit 485bd75abe
8 changed files with 36 additions and 6 deletions
+6
View File
@@ -71,6 +71,7 @@ bool CObjectBase::Load(const VfsPath& pathname)
AT(speed);
AT(event);
AT(load);
AT(sound);
AT(attachpoint);
AT(actor);
AT(frequency);
@@ -222,6 +223,11 @@ bool CObjectBase::Load(const VfsPath& pathname)
float pos = ae.Value.ToFloat();
anim.m_ActionPos2 = clamp(pos, 0.f, 1.f);
}
else if (ae.Name == at_sound)
{
float pos = ae.Value.ToFloat();
anim.m_SoundPos = clamp(pos, 0.f, 1.f);
}
}
currentVariant->m_Anims.push_back(anim);
}