You don't belong there
This commit is contained in:
@@ -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)));
|
||||
|
||||
@@ -29,9 +29,7 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user