mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Minor code refactoring
This commit is contained in:
parent
bd25e7b4ac
commit
f750144c88
2 changed files with 1 additions and 9 deletions
|
|
@ -3212,10 +3212,7 @@ boolean M_Responder(event_t *ev)
|
|||
|
||||
case KEY_ESCAPE: // Pop up menu
|
||||
if (chat_on)
|
||||
{
|
||||
HU_clearChatChars();
|
||||
chat_on = false;
|
||||
}
|
||||
else
|
||||
M_StartControlPanel();
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -380,12 +380,7 @@ static void SDLdoUngrabMouse(void)
|
|||
void SDLforceUngrabMouse(void)
|
||||
{
|
||||
if (SDL_WasInit(SDL_INIT_VIDEO)==SDL_INIT_VIDEO && window != NULL)
|
||||
{
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
SDL_SetWindowGrab(window, SDL_FALSE);
|
||||
wrapmouseok = SDL_FALSE;
|
||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||
}
|
||||
SDLdoUngrabMouse();
|
||||
}
|
||||
|
||||
void I_UpdateMouseGrab(void)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue