Make RenderUnit.PlayCustomAnimBackwards not crash if the callback is null
This commit is contained in:
@@ -34,10 +34,10 @@ namespace OpenRA.Mods.RA.Render
|
|||||||
() => { PlayCustomAnimRepeating(self, name); });
|
() => { PlayCustomAnimRepeating(self, name); });
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PlayCustomAnimBackwards(Actor self, string name, Action a)
|
public void PlayCustomAnimBackwards(Actor self, string name, Action after)
|
||||||
{
|
{
|
||||||
anim.PlayBackwardsThen(name,
|
anim.PlayBackwardsThen(name,
|
||||||
() => { anim.PlayRepeating("idle"); a(); });
|
() => { anim.PlayRepeating("idle"); if (after != null) after(); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user