Browse Source

engine: client: don't trigger CheckGamma if there is no screenshot action

master
Alibek Omarov 11 months ago
parent
commit
618ec83c9d
  1. 5
      engine/client/cl_scrn.c

5
engine/client/cl_scrn.c

@ -288,6 +288,9 @@ void SCR_MakeScreenShot( void )
qboolean iRet = false; qboolean iRet = false;
int viewsize; int viewsize;
if( cls.scrshot_action == scrshot_inactive )
return;
if( cls.envshot_viewsize > 0 ) if( cls.envshot_viewsize > 0 )
viewsize = cls.envshot_viewsize; viewsize = cls.envshot_viewsize;
else viewsize = cl_envshot_size.value; else viewsize = cl_envshot_size.value;
@ -319,8 +322,6 @@ void SCR_MakeScreenShot( void )
if( iRet ) if( iRet )
VID_WriteOverviewScript(); // store overview script too VID_WriteOverviewScript(); // store overview script too
break; break;
case scrshot_inactive:
return;
} }
// report // report

Loading…
Cancel
Save