mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 17:47:12 -04:00
When pressing escape in pause screen, return to normal screen.
This commit is contained in:
parent
c7bfbc8567
commit
fa5352f634
@ -116,6 +116,8 @@ namespace ClassicalSharp {
|
||||
} else if( key == Keys[KeyMapping.PauseOrExit] && !Map.IsNotLoaded ) {
|
||||
if( !( activeScreen is PauseScreen ) ) {
|
||||
SetNewScreen( new PauseScreen( this ) );
|
||||
} else {
|
||||
SetNewScreen( new NormalScreen( this ) );
|
||||
}
|
||||
} else if( activeScreen == null || !activeScreen.HandlesKeyDown( key ) ) {
|
||||
if( key == Keys[KeyMapping.OpenInventory] ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user