Removes map control from player statistics for performance reasons

This commit is contained in:
reaperrr
2015-04-03 18:25:26 +02:00
parent a8bf90f8b2
commit e25247f259
4 changed files with 25 additions and 65 deletions

View File

@@ -199,7 +199,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var stats = player.PlayerActor.TraitOrDefault<PlayerStatistics>();
if (stats == null) return template;
template.Get<LabelWidget>("CONTROL").GetText = () => MapControl(stats.MapControl);
template.Get<LabelWidget>("KILLS_COST").GetText = () => "$" + stats.KillsCost;
template.Get<LabelWidget>("DEATHS_COST").GetText = () => "$" + stats.DeathsCost;
template.Get<LabelWidget>("UNITS_KILLED").GetText = () => stats.UnitsKilled.ToString();