From 7a4380e7bd52c045bce33ce29864bb6c8c631ebe Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 30 Jan 2011 17:33:04 +1300 Subject: [PATCH] fix exploitable SetStance order --- OpenRA.Game/Network/UnitOrders.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Game/Network/UnitOrders.cs b/OpenRA.Game/Network/UnitOrders.cs index 04d4b10d5a..5db779d5be 100755 --- a/OpenRA.Game/Network/UnitOrders.cs +++ b/OpenRA.Game/Network/UnitOrders.cs @@ -148,6 +148,9 @@ namespace OpenRA.Network case "SetStance": { + if (Game.orderManager.LobbyInfo.GlobalSettings.LockTeams) + return; + var targetPlayer = order.Player.World.players[order.TargetLocation.X]; var newStance = (Stance)order.TargetLocation.Y;