Merge pull request #10650 from pchote/remove-fragile-diplomacy
Remove fragile diplomacy.
This commit is contained in:
@@ -179,7 +179,6 @@ namespace OpenRA.Network
|
||||
public int Timestep = 40;
|
||||
public int OrderLatency = 3; // net tick frames (x 120 = ms)
|
||||
public int RandomSeed = 0;
|
||||
public bool FragileAlliances = false; // Allow diplomatic stance changes after game start.
|
||||
public bool AllowCheats = false;
|
||||
public bool AllowSpectators = true;
|
||||
public bool Dedicated;
|
||||
|
||||
@@ -265,29 +265,6 @@ namespace OpenRA.Network
|
||||
break;
|
||||
}
|
||||
|
||||
case "SetStance":
|
||||
{
|
||||
if (!Game.OrderManager.LobbyInfo.GlobalSettings.FragileAlliances)
|
||||
return;
|
||||
|
||||
var targetPlayer = order.Player.World.Players.FirstOrDefault(p => p.InternalName == order.TargetString);
|
||||
var newStance = (Stance)order.ExtraData;
|
||||
|
||||
order.Player.SetStance(targetPlayer, newStance);
|
||||
|
||||
Game.Debug("{0} has set diplomatic stance vs {1} to {2}",
|
||||
order.Player.PlayerName, targetPlayer.PlayerName, newStance);
|
||||
|
||||
// automatically declare war reciprocally
|
||||
if (newStance == Stance.Enemy && targetPlayer.Stances[order.Player] == Stance.Ally)
|
||||
{
|
||||
targetPlayer.SetStance(order.Player, newStance);
|
||||
Game.Debug("{0} has reciprocated", targetPlayer.PlayerName);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case "Ping":
|
||||
{
|
||||
orderManager.IssueOrder(Order.Pong(order.TargetString));
|
||||
|
||||
Reference in New Issue
Block a user