mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +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
|
// update input
|
||||||
if(Input()->Update())
|
if(Input()->Update())
|
||||||
|
{
|
||||||
|
if(State() == IClient::STATE_QUITTING)
|
||||||
|
break;
|
||||||
|
else
|
||||||
SetState(IClient::STATE_QUITTING); // SDL_QUIT
|
SetState(IClient::STATE_QUITTING); // SDL_QUIT
|
||||||
|
}
|
||||||
#if defined(CONF_AUTOUPDATE)
|
#if defined(CONF_AUTOUPDATE)
|
||||||
Updater()->Update();
|
Updater()->Update();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue