Prevent player name from becoming part of a formatting string.

fixes #6524
This commit is contained in:
Matthijs Benschop
2014-09-21 00:52:20 +02:00
parent ea11906938
commit 534f6c5a33
4 changed files with 7 additions and 7 deletions

View File

@@ -97,7 +97,7 @@ namespace OpenRA.Mods.RA
public void OnPlayerLost(Player player)
{
Game.Debug("{0} is defeated.".F(player.PlayerName));
Game.Debug("{0} is defeated.", player.PlayerName);
foreach (var a in player.World.Actors.Where(a => a.Owner == player))
a.Kill(a);
@@ -114,7 +114,7 @@ namespace OpenRA.Mods.RA
public void OnPlayerWon(Player player)
{
Game.Debug("{0} is victorious.".F(player.PlayerName));
Game.Debug("{0} is victorious.", player.PlayerName);
if (player == player.World.LocalPlayer)
Game.RunAfterDelay(info.NotificationDelay, () => Sound.PlayNotification(player.World.Map.Rules, player, "Speech", "Win", player.Country.Race));