Suppress map change order when selecting the same map. Fixes #6206.

This commit is contained in:
Paul Chote
2014-08-19 00:05:36 +12:00
parent e2ede4ec24
commit 774e516106

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