#2191 fixed -- custom OGs canceled on win/lose

This commit is contained in:
Chris Forbes
2012-06-10 17:17:38 +12:00
parent 4a7417347a
commit 3827a5436a
2 changed files with 14 additions and 2 deletions

View File

@@ -48,7 +48,13 @@ namespace OpenRA.Mods.RA.Orders
}
}
public void Tick(World world) { }
public void Tick(World world)
{
if (world.LocalPlayer != null &&
world.LocalPlayer.WinState != WinState.Undefined)
world.CancelInputMode();
}
public void RenderAfterWorld(WorldRenderer wr, World world) { }
public void RenderBeforeWorld(WorldRenderer wr, World world) { }