1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 16:25:32 +08:00

Remove unnecessary casting

This commit is contained in:
Dean Herbert 2022-08-24 15:23:31 +09:00
parent a86fc6f248
commit b6254a1f25

View File

@ -40,9 +40,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
protected override void Update() protected override void Update()
{ {
// The player clock's running state is controlled externally, but the local pausing state needs to be updated to start/stop gameplay. // The player clock's running state is controlled externally, but the local pausing state needs to be updated to start/stop gameplay.
SpectatorPlayerClock clock = (SpectatorPlayerClock)GameplayClockContainer.SourceClock; if (GameplayClockContainer.SourceClock.IsRunning)
if (clock.IsRunning)
GameplayClockContainer.Start(); GameplayClockContainer.Start();
else else
GameplayClockContainer.Stop(); GameplayClockContainer.Stop();