mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-23 04:12:42 +00:00
fixed demo playback abortion crashing when the "nextdemo" cvar was set to play a demo
also no longer breaking when stopping demo playback because it's annoying as hell
This commit is contained in:
parent
4a848e7b6a
commit
55ae7645b1
2 changed files with 6 additions and 5 deletions
|
@ -16,6 +16,8 @@ add: /toggle can now accept a value sequence (2 or more entries) to loop through
|
|||
|
||||
chg: on Windows, the upper limit of open stdio file handles was raised from 512 to 2048
|
||||
|
||||
fix: aborting demo playback would crash when the "nextdemo" cvar was set to play a demo
|
||||
|
||||
fix: no longer feeding cs commands that came from a previous gamestate to cgame
|
||||
example: "/map cpm22" -> "/cv map cpm25" -> elevator sound was broken
|
||||
|
||||
|
|
|
@ -273,9 +273,8 @@ void QDECL Com_ErrorExt( int code, int module, qbool realError, const char *fmt,
|
|||
|
||||
#if defined(_WIN32) && defined(_DEBUG)
|
||||
if ( code != ERR_DISCONNECT && code != ERR_NEED_CD ) {
|
||||
if ((!com_noErrorInterrupt || !com_noErrorInterrupt->integer) && IsDebuggerPresent()) {
|
||||
if ( realError && (!com_noErrorInterrupt || !com_noErrorInterrupt->integer) && IsDebuggerPresent() )
|
||||
__debugbreak();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -293,7 +292,7 @@ void QDECL Com_ErrorExt( int code, int module, qbool realError, const char *fmt,
|
|||
com_errorEntered = qfalse;
|
||||
longjmp (abortframe, -1);
|
||||
} else if ( code == ERR_DROP || code == ERR_DISCONNECT ) {
|
||||
if (realError)
|
||||
if ( realError )
|
||||
Com_Printf( "********************\nERROR: %s\n********************\n", com_errorMessage );
|
||||
else
|
||||
Com_Printf( "ERROR: %s\n", com_errorMessage );
|
||||
|
@ -301,11 +300,11 @@ void QDECL Com_ErrorExt( int code, int module, qbool realError, const char *fmt,
|
|||
#ifndef DEDICATED
|
||||
const qbool demo = CL_DemoPlaying();
|
||||
CL_Disconnect( qtrue );
|
||||
if ( demo )
|
||||
CL_NextDemo();
|
||||
CL_FlushMemory(); // shuts down the VMs and starts them back up
|
||||
if ( realError )
|
||||
CL_ForwardUIError( code == ERR_DROP ? EXT_ERRLEV_DROP : EXT_ERRLEV_DISC, module, com_errorMessage );
|
||||
else if ( demo )
|
||||
CL_NextDemo();
|
||||
#endif
|
||||
com_errorEntered = qfalse;
|
||||
longjmp (abortframe, -1);
|
||||
|
|
Loading…
Reference in a new issue