freeze animations during pause to visualize it better

This commit is contained in:
Matthias Mailänder
2014-07-03 21:09:58 +02:00
parent d1e18cad7a
commit 960248fe44
20 changed files with 65 additions and 2 deletions

View File

@@ -37,6 +37,9 @@ namespace OpenRA.Mods.RA.Render
public override void TickRender(WorldRenderer wr, Actor self)
{
if (wr.world.Paused == World.PauseState.Paused)
return;
var sequence = (armament.IsReloading ? "empty-" : "") + (attack.IsAttacking ? "aim" : "idle");
if (sequence != DefaultAnimation.CurrentSequence.Name)
DefaultAnimation.ReplaceAnim(sequence);