You don't belong there

This commit is contained in:
Paul Chote
2010-07-13 23:19:38 +12:00
parent 7764302ac3
commit f7a6ed78ec
2 changed files with 2 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ namespace OpenRA.Widgets.Delegates
map.Map = () => {return Map;};
map.OnSpawnClick = sp =>
{
if (Game.LocalClient.State == Session.ClientState.Ready) return;
var owned = Game.LobbyInfo.Clients.Any(c => c.SpawnPoint == sp);
if (sp == 0 || !owned)
Game.IssueOrder(Order.Command("spawn {0}".F(sp)));

View File

@@ -30,8 +30,6 @@ namespace OpenRA.Widgets
const int closeEnough = 50;
public override bool HandleInput(MouseInput mi)
{
if (Game.LocalClient.State == Session.ClientState.Ready) return false;
var map = Map();
if (map == null)
return false;