mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:43:20 +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);
|
base.OnResuming(last);
|
||||||
if (last != player) return;
|
if (last != player) return;
|
||||||
var newPlayer = new Player
|
player = new Player
|
||||||
{
|
{
|
||||||
RestartCount = player.RestartCount + 1,
|
RestartCount = player.RestartCount + 1,
|
||||||
OnRestart = restart
|
OnRestart = restart
|
||||||
};
|
};
|
||||||
player = newPlayer;
|
LoadComponentAsync(player, delegate
|
||||||
LoadComponentAsync(newPlayer, delegate
|
|
||||||
{
|
{
|
||||||
if (!Push(newPlayer))
|
if (!Push(player))
|
||||||
Exit();
|
Exit();
|
||||||
ValidForResume = false;
|
ValidForResume = false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user