From 531f2c410a3a9145ba7b08cd2d4b11b0d3098458 Mon Sep 17 00:00:00 2001 From: EVAST9919 Date: Mon, 8 May 2017 00:26:34 +0300 Subject: [PATCH] removed useless variable --- osu.Game/Screens/Play/SongProgress.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/osu.Game/Screens/Play/SongProgress.cs b/osu.Game/Screens/Play/SongProgress.cs index b0a77afa51..6489391d6a 100644 --- a/osu.Game/Screens/Play/SongProgress.cs +++ b/osu.Game/Screens/Play/SongProgress.cs @@ -139,16 +139,15 @@ namespace osu.Game.Screens.Play if (objects == null) return; - double drawableCurrentTime = AudioClock?.CurrentTime ?? Time.Current; - double songCurrentTime = drawableCurrentTime - firstHitTime; - double progress = songCurrentTime / lastHitTime; + double currentTime = (AudioClock?.CurrentTime ?? Time.Current) - firstHitTime; + double progress = currentTime / lastHitTime; bar.UpdatePosition((float)progress); graph.Progress = (int)(graph.ColumnCount * progress); info.Progress = (int)(progress * 100); - info.TimeCurrent = songCurrentTime; - info.TimeLeft = lastHitTime - firstHitTime - songCurrentTime; + info.TimeCurrent = currentTime; + info.TimeLeft = lastHitTime - firstHitTime - currentTime; } } }