Skip to content

Commit

Permalink
engine: client: don't write download notify outside of window
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Aug 31, 2023
1 parent aeece35 commit 435b95f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engine/client/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1754,9 +1754,13 @@ void Con_DrawDebug( void )

if( scr_download.value != -1.0f )
{
int length;
Q_snprintf( dlstring, sizeof( dlstring ), "Downloading [%d remaining]: ^2%s^7 %5.1f%% time %.f secs",
host.downloadcount, host.downloadfile, scr_download.value, Sys_DoubleTime() - timeStart );
x = refState.width - 500;

Con_DrawStringLen( dlstring, &length, NULL );
length = Q_max( length, 500 );
x = refState.width - length * 1.05f;
y = con.curFont->charHeight * 1.05f;
Con_DrawString( x, y, dlstring, g_color_table[7] );
}
Expand Down

0 comments on commit 435b95f

Please sign in to comment.