mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-21 02:01:03 +00:00
Fix freeze when quitting the game during timedemo
When one tries to quit the game (via quit in console) while a timedemo is running, the game freezes indefinitely while displaying the timedemo results. This happens because the MessageBox used for that waits for a an event normally triggered by a timer - but it seems like that does not happen anymore during Shutdown() The fix makes sure that this message box isn't displayed.
This commit is contained in:
parent
9a9babf8d6
commit
c7956a1cb5
1 changed files with 5 additions and 0 deletions
|
@ -419,6 +419,11 @@ void idSessionLocal::Shutdown() {
|
|||
EndAVICapture();
|
||||
}
|
||||
|
||||
if(timeDemo == TD_YES) {
|
||||
// else the game freezes when showing the timedemo results
|
||||
timeDemo = TD_YES_THEN_QUIT;
|
||||
}
|
||||
|
||||
Stop();
|
||||
|
||||
if ( rw ) {
|
||||
|
|
Loading…
Reference in a new issue