Merge pull request #6271 from pchote/map-kick-fix
Avoid sending the map change order when selecting the same map.
This commit is contained in:
@@ -150,6 +150,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
{
|
||||
var onSelect = new Action<string>(uid =>
|
||||
{
|
||||
// Don't select the same map again
|
||||
if (uid == Map.Uid)
|
||||
return;
|
||||
|
||||
orderManager.IssueOrder(Order.Command("map " + uid));
|
||||
Game.Settings.Server.Map = uid;
|
||||
Game.Settings.Save();
|
||||
|
||||
Reference in New Issue
Block a user