MantisBT - Zandronum
View Issue Details
0001058Zandronum[All Projects] Bugpublic2012-09-24 09:002015-01-15 19:06
unknownna 
Dusk 
normalcrashalways
feedbackopen 
1.0 
 
0001058: Crash if calling "endgame" while watching a demo
I just randomly noticed this.
1. zandronum.exe -playdemo 2012.09.24_08.47.13_doom2.cld
2. "endgame" in the console.
3. After a few seconds Zandronum will crash.
2012.09.24_08.47.13_doom2.cld
No tags attached.
Issue History
2012-09-24 09:00unknownnaNew Issue
2012-09-24 09:00unknownnaStatusnew => confirmed
2012-09-24 12:40DuskNote Added: 0004792
2012-09-24 12:40DuskAssigned To => Dusk
2012-09-24 12:40DuskStatusconfirmed => needs review
2012-09-24 19:24Torr SamahoNote Added: 0004796
2012-09-24 19:25Torr SamahoStatusneeds review => feedback
2015-01-15 19:01Edward-sanNote Added: 0011388
2015-01-15 19:06Edward-sanNote Edited: 0011388bug_revision_view_page.php?bugnote_id=11388#r6398

Notes
(0004792)
Dusk   
2012-09-24 12:40   
Fixed

endgame ended the game, but not demo playback.
(0004796)
Torr Samaho   
2012-09-24 19:24   
It's likely better to end the demo playback in C_FullConsole instead of directly in the CCMD endgame. At least this is more consistent with how ZDoom ends demo playback when endgame is called.
(0011388)
Edward-san   
2015-01-15 19:01   
(edited on: 2015-01-15 19:06)
There should be another check, because when I added 'if ( CLIENTDEMO_IsPlaying( ) ) CLIENTDEMO_FinishPlaying( );' in C_FullConsole, after server netstate check, I can't replay demos anymore, either with command line '-playdemo' or with 'playdemo' console command.