fix exploitable SetStance order
This commit is contained in:
@@ -148,6 +148,9 @@ namespace OpenRA.Network
|
|||||||
|
|
||||||
case "SetStance":
|
case "SetStance":
|
||||||
{
|
{
|
||||||
|
if (Game.orderManager.LobbyInfo.GlobalSettings.LockTeams)
|
||||||
|
return;
|
||||||
|
|
||||||
var targetPlayer = order.Player.World.players[order.TargetLocation.X];
|
var targetPlayer = order.Player.World.players[order.TargetLocation.X];
|
||||||
var newStance = (Stance)order.TargetLocation.Y;
|
var newStance = (Stance)order.TargetLocation.Y;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user