remove unnecessary ref to world in Chat

This commit is contained in:
Bob
2010-04-13 22:05:15 +12:00
committed by Chris Forbes
parent c3f1ec9ed2
commit e791a44290

View File

@@ -68,7 +68,7 @@ namespace OpenRA
public void AddLine(Color c, string from, string text)
{
recentLines.Add(Tuple.New(c, from, text));
var eva = Game.world.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
var eva = Rules.Info["world"].Traits.Get<EvaAlertsInfo>();
Sound.Play(eva.ChatBeep);
while (recentLines.Count > logLength) recentLines.RemoveAt(0);
}