diff --git a/game.c b/game.c index 707f09f..9bec85c 100755 --- a/game.c +++ b/game.c @@ -2440,6 +2440,9 @@ void displayrest(long smoothratio) { if( (ps[myconnectindex].gm&MODE_MENU) == MODE_MENU && current_menu < 51) { + // out menu --eukara + SDL_WM_GrabInput(SDL_GRAB_ON); + KB_ClearKeyDown(sc_Escape); ps[myconnectindex].gm &= ~MODE_MENU; if(ud.multimode < 2 && ud.recstat != 2) @@ -2456,6 +2459,9 @@ void displayrest(long smoothratio) ps[myconnectindex].newowner == -1 && (ps[myconnectindex].gm&MODE_TYPE) != MODE_TYPE) { + // in menu --eukara + SDL_WM_GrabInput(SDL_GRAB_OFF); + KB_ClearKeyDown(sc_Escape); FX_StopAllSounds(); clearsoundlocks();