mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 20:32:55 +08:00
Merge pull request #1779 from peppy/fix-regression
Fix regression during merges
This commit is contained in:
commit
ee1baed0e9
@ -440,12 +440,16 @@ namespace osu.Game
|
||||
|
||||
private void screenAdded(Screen newScreen)
|
||||
{
|
||||
currentScreen = (OsuScreen)newScreen;
|
||||
|
||||
newScreen.ModePushed += screenAdded;
|
||||
newScreen.Exited += screenRemoved;
|
||||
}
|
||||
|
||||
private void screenRemoved(Screen newScreen)
|
||||
{
|
||||
currentScreen = (OsuScreen)newScreen;
|
||||
|
||||
if (newScreen == null)
|
||||
Exit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user