mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 18:45:37 +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()
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user