Revert "new PauseState to differentiate game and editor pausing"

This reverts commit d1e18cad7a.
This commit is contained in:
Paul Chote
2014-07-08 10:40:23 +12:00
parent 18c9a25232
commit 802b6a652c
10 changed files with 21 additions and 25 deletions

View File

@@ -28,7 +28,7 @@ namespace OpenRA.Mods.RA.Render
public object Create(ActorInitializer init) { return new WithActiveAnimation(init.self, this); }
}
public class WithActiveAnimation : ITickRender, INotifyBuildComplete, INotifySold
public class WithActiveAnimation : ITick, INotifyBuildComplete, INotifySold
{
readonly IEnumerable<IDisable> disabled;
readonly WithActiveAnimationInfo info;
@@ -42,11 +42,8 @@ namespace OpenRA.Mods.RA.Render
}
int ticks;
public void TickRender(WorldRenderer wr, Actor self)
public void Tick(Actor self)
{
if (wr.world.Paused == World.PauseState.Paused)
return;
if (!buildComplete)
return;