Merge pull request #6526 from MatthijsBenschop/debug-crash-fix

Prevent player name from becoming part of a formatting string.
This commit is contained in:
Matthias Mailänder
2014-09-21 10:21:11 +02:00
4 changed files with 7 additions and 7 deletions

View File

@@ -54,7 +54,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);
@@ -71,7 +71,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));

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));