hack around crash on boat repair
This commit is contained in:
@@ -59,8 +59,9 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
public void PlayCustomAnim(Actor self, string name)
|
public void PlayCustomAnim(Actor self, string name)
|
||||||
{
|
{
|
||||||
anim.PlayThen(GetPrefix(self) + name,
|
if (anim.HasSequence(name))
|
||||||
() => anim.PlayRepeating(GetPrefix(self) + "idle"));
|
anim.PlayThen(GetPrefix(self) + name,
|
||||||
|
() => anim.PlayRepeating(GetPrefix(self) + "idle"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PlayCustomAnimThen(Actor self, string name, Action a)
|
public void PlayCustomAnimThen(Actor self, string name, Action a)
|
||||||
|
|||||||
Reference in New Issue
Block a user