From 774e516106a2399bbc7d94f989a9cb917b707d45 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 19 Aug 2014 00:05:36 +1200 Subject: [PATCH] Suppress map change order when selecting the same map. Fixes #6206. --- OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs index 6b463e58fa..956e29d928 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/LobbyLogic.cs @@ -150,6 +150,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic { var onSelect = new Action(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();