Kick clients who don't have the map when the host force-starts.
This commit is contained in:
@@ -530,6 +530,9 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
|
||||
if (Map.Status == MapStatus.Available)
|
||||
{
|
||||
// Tell the server that we have the map
|
||||
orderManager.IssueOrder(Order.Command("state {0}".F(Session.ClientState.NotReady)));
|
||||
|
||||
// Restore default starting cash if the last map set it to something invalid
|
||||
var pri = Rules.Info["player"].Traits.Get<PlayerResourcesInfo>();
|
||||
if (!Map.Map.Options.StartingCash.HasValue && !pri.SelectableCash.Contains(orderManager.LobbyInfo.GlobalSettings.StartingCash))
|
||||
|
||||
@@ -383,7 +383,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
status.IsVisible = () => true;
|
||||
status.IsDisabled = () => c.Bot != null || map.Status != MapStatus.Available;
|
||||
|
||||
status.OnClick = () => orderManager.IssueOrder(Order.Command("ready"));
|
||||
var state = orderManager.LocalClient.IsReady ? Session.ClientState.NotReady : Session.ClientState.Ready;
|
||||
status.OnClick = () => orderManager.IssueOrder(Order.Command("state {0}".F(state)));
|
||||
}
|
||||
|
||||
public static void SetupReadyWidget(Widget parent, Session.Slot s, Session.Client c)
|
||||
|
||||
Reference in New Issue
Block a user