From a249302b6b1412c3334fde6f471847283017a80b Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Wed, 18 Mar 2015 16:54:15 +0100 Subject: [PATCH] Allow the use of race variants in "StartGameNotification:" --- OpenRA.Mods.Common/Traits/World/StartGameNotification.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/World/StartGameNotification.cs b/OpenRA.Mods.Common/Traits/World/StartGameNotification.cs index f2072ae447..f85bf94f7c 100644 --- a/OpenRA.Mods.Common/Traits/World/StartGameNotification.cs +++ b/OpenRA.Mods.Common/Traits/World/StartGameNotification.cs @@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Traits public void WorldLoaded(World world, WorldRenderer wr) { - Sound.PlayNotification(world.Map.Rules, null, "Speech", info.Notification, null); + Sound.PlayNotification(world.Map.Rules, null, "Speech", info.Notification, world.RenderPlayer == null ? null : world.RenderPlayer.Country.Race); } } }