Code cleanup
This commit is contained in:
committed by
teinarss
parent
10ac07bf9f
commit
2c8c6e50da
@@ -160,7 +160,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
TextNotificationsManager.AddSystemLine(Notification.F(m, m > 1 ? "s" : null));
|
||||
|
||||
var faction = self.World.LocalPlayer == null ? null : self.World.LocalPlayer.Faction.InternalName;
|
||||
var faction = self.World.LocalPlayer?.Faction.InternalName;
|
||||
Game.Sound.PlayNotification(self.World.Map.Rules, self.World.LocalPlayer, "Speech", info.TimeLimitWarnings[m], faction);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user