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:
obrakmann
2014-08-18 20:01:15 +02:00

View File

@@ -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();