avoid magic number for replay duration calculation

This commit is contained in:
Matthias Mailänder
2013-10-16 21:09:45 +02:00
parent f51bd87332
commit f21f314bfe
3 changed files with 4 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
currentMap = currentReplay.Map();
panel.Get<LabelWidget>("DURATION").GetText =
() => WidgetUtils.FormatTime(currentReplay.Duration * 3 /* TODO: 3:1 ratio isnt always true. */);
() => WidgetUtils.FormatTime(currentReplay.Duration);
panel.Get<MapPreviewWidget>("MAP_PREVIEW").Map = () => currentMap;
panel.Get<LabelWidget>("MAP_TITLE").GetText =
() => currentMap != null ? currentMap.Title : "(Unknown Map)";