diff options
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r-- | src/cgame/cg_draw.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 8597482..a439b51 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -4138,6 +4138,21 @@ static void CG_DrawHealthBars( void ) /* ================= +CG_Brighten +================= +*/ +static void CG_Brighten( int iterations ) +{ + int i; + + for( i = 0; i < iterations; i++ ) + { + CG_DrawPic( 0, 0, 640, 480, cgs.media.brightenShader ); + } +} + +/* +================= CG_DrawWarpOverlay ================= */ @@ -4176,6 +4191,12 @@ static void CG_DrawWarpOverlay( void ) if( cg.warping ) { trap_R_SetColor( NULL ); + + if( cg_brighten.integer < 2 ) + { + CG_Brighten( MIN( 2 - cg_brighten.integer, 2 ) ); + } + CG_DrawPic( 0, 0, 640, 480, cgs.media.warpOverlay ); if( cg.warpExitBlocked ) @@ -4211,6 +4232,8 @@ static void CG_Draw2D( void ) // (only 2D that can't be disabled) CG_DrawLighting( ); + CG_Brighten( cg_brighten.integer ); + CG_DrawWarpOverlay( ); if( cg_draw2D.integer == 0 ) |