Prevent changes when marked as ready

This commit is contained in:
alzeih
2010-06-14 00:55:22 +12:00
parent 3ac0ca6a65
commit 7b837fd6c4
3 changed files with 41 additions and 1 deletions

View File

@@ -32,6 +32,8 @@ namespace OpenRA.Widgets
public override bool HandleInput(MouseInput mi)
{
if (Game.LocalClient.State == Session.ClientState.Ready) return false;
if (mi.Event == MouseInputEvent.Down && mi.Button == MouseButton.Left)
{
var container = new Rectangle(DrawPosition().X, DrawPosition().Y, Parent.Bounds.Width, Parent.Bounds.Height);