mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 13:22:55 +08:00
Remove unnecessary casting
This commit is contained in:
parent
a86fc6f248
commit
b6254a1f25
@ -40,9 +40,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Spectate
|
||||
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.
|
||||
SpectatorPlayerClock clock = (SpectatorPlayerClock)GameplayClockContainer.SourceClock;
|
||||
|
||||
if (clock.IsRunning)
|
||||
if (GameplayClockContainer.SourceClock.IsRunning)
|
||||
GameplayClockContainer.Start();
|
||||
else
|
||||
GameplayClockContainer.Stop();
|
||||
|
Loading…
Reference in New Issue
Block a user