Allow the use of race variants in "StartGameNotification:"

This commit is contained in:
abcdefg30
2015-03-18 16:54:15 +01:00
parent dc1862f3dc
commit a249302b6b

View File

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