Merge pull request #6526 from MatthijsBenschop/debug-crash-fix
Prevent player name from becoming part of a formatting string.
This commit is contained in:
@@ -241,8 +241,8 @@ namespace OpenRA.Network
|
||||
|
||||
SetPlayerStance(world, order.Player, targetPlayer, newStance);
|
||||
|
||||
Game.Debug("{0} has set diplomatic stance vs {1} to {2}".F(
|
||||
order.Player.PlayerName, targetPlayer.PlayerName, 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)
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace OpenRA.Traits
|
||||
return;
|
||||
}
|
||||
|
||||
Game.Debug("Cheat used: {0} by {1}".F(order.OrderString, self.Owner.PlayerName));
|
||||
Game.Debug("Cheat used: {0} by {1}", order.OrderString, self.Owner.PlayerName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user