don't explode on taking damage to <50% while selling

This commit is contained in:
Chris Forbes
2010-05-06 01:25:48 +12:00
parent 854dfcf470
commit 9297aedfcc

View File

@@ -68,6 +68,9 @@ namespace OpenRA.Graphics
public void ReplaceAnim(string sequenceName)
{
if (!HasSequence(sequenceName))
return;
CurrentSequence = SequenceProvider.GetSequence(name, sequenceName);
frame %= CurrentSequence.Length;
}