mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Quit hard on second SDL_QUIT input even if dialogs are shown
This commit is contained in:
parent
6839e5f20d
commit
512d146d56
|
@ -3196,7 +3196,12 @@ void CClient::Run()
|
|||
|
||||
// update input
|
||||
if(Input()->Update())
|
||||
{
|
||||
if(State() == IClient::STATE_QUITTING)
|
||||
break;
|
||||
else
|
||||
SetState(IClient::STATE_QUITTING); // SDL_QUIT
|
||||
}
|
||||
#if defined(CONF_AUTOUPDATE)
|
||||
Updater()->Update();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue