mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
always disabling the FPS limiter after drop errors
This commit is contained in:
parent
c024cdcdc9
commit
2dcddc87eb
3 changed files with 15 additions and 0 deletions
|
@ -674,6 +674,12 @@ static void CL_SetMaxFPS( int maxFPS )
|
|||
}
|
||||
|
||||
|
||||
void CL_DisableFramerateLimiter()
|
||||
{
|
||||
CL_SetMaxFPS( 0 );
|
||||
}
|
||||
|
||||
|
||||
void CL_InitCGame()
|
||||
{
|
||||
int t = Sys_Milliseconds();
|
||||
|
|
|
@ -282,6 +282,10 @@ void QDECL Com_ErrorExt( int code, int module, qbool realError, const char *fmt,
|
|||
Cvar_Set("com_errorMessage", com_errorMessage);
|
||||
}
|
||||
|
||||
#ifndef DEDICATED
|
||||
CL_DisableFramerateLimiter();
|
||||
#endif
|
||||
|
||||
if ( code == ERR_SERVERDISCONNECT ) {
|
||||
#ifndef DEDICATED
|
||||
CL_Disconnect( qtrue );
|
||||
|
|
|
@ -1019,6 +1019,11 @@ qbool CL_DemoPlaying();
|
|||
void CL_NextDemo();
|
||||
// invoke the "nextdemo" cvar as a command, if not empty
|
||||
|
||||
void CL_DisableFramerateLimiter();
|
||||
// map loads might be interrupted by a drop-style error,
|
||||
// which would leave the FPS limit enabled until the next successful map load
|
||||
// this should therefore always be called by Com_Error
|
||||
|
||||
void Key_KeyNameCompletion( void (*callback)(const char *s) );
|
||||
// for /bind and /unbind auto-completion
|
||||
|
||||
|
|
Loading…
Reference in a new issue