mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +08:00
Removed unneeded newPlayer
This commit is contained in:
parent
c0f4cbcba6
commit
2bd89e922f
@ -65,15 +65,14 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
base.OnResuming(last);
|
||||
if (last != player) return;
|
||||
var newPlayer = new Player
|
||||
player = new Player
|
||||
{
|
||||
RestartCount = player.RestartCount + 1,
|
||||
OnRestart = restart
|
||||
};
|
||||
player = newPlayer;
|
||||
LoadComponentAsync(newPlayer, delegate
|
||||
LoadComponentAsync(player, delegate
|
||||
{
|
||||
if (!Push(newPlayer))
|
||||
if (!Push(player))
|
||||
Exit();
|
||||
ValidForResume = false;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user