Mouse grab fix for Save/Load menu.
This commit is contained in:
parent
9af0e5a448
commit
d2ecc76d40
6
menues.c
6
menues.c
|
@ -2012,6 +2012,9 @@ void menus(void)
|
|||
ps[myconnectindex].gm = MODE_GAME;
|
||||
}
|
||||
|
||||
/* out menu -- eukara */
|
||||
SDL_WM_GrabInput(SDL_GRAB_ON);
|
||||
|
||||
break;
|
||||
}
|
||||
if( KB_KeyPressed(sc_N) || KB_KeyPressed(sc_Escape) || RMB)
|
||||
|
@ -2880,6 +2883,9 @@ void menus(void)
|
|||
}
|
||||
KB_ClearKeyDown(sc_Escape);
|
||||
sound(EXITMENUSOUND);
|
||||
|
||||
/* out menu -- eukara */
|
||||
SDL_WM_GrabInput(SDL_GRAB_ON);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue