avoid magic number for replay duration calculation
This commit is contained in:
@@ -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)";
|
||||
|
||||
Reference in New Issue
Block a user