engine/EngineConsole.c
/*	johnfitz -- returns a bar of the desired length, but never wider than the console

	includes a newline, unless len >= con_linewidth.
*/
- returns a bar of the desired length, but never wider than the console
includes a newline, unless len >= con_linewidth.
- returns a bar of the desired length but never wider than the console includes a newline unless len > = con_linewidth .
char *Con_Quakebar (int len)
{
	static char bar[42];
	int i;
	len = Math_Min(len,sizeof(bar)-2);
	len = Math_Min(len,con_linewidth);
	bar[0] = '\35';
	for (i = 1; i < len - 1; i++)
		bar[i] = '\36';
	bar[len-1] = '\37';
	if (len < con_linewidth)
	{
		bar[len] = '\n';
		bar[len+1] = 0;
	}
	else
		bar[len] = 0;
	return bar;
}
char * Con_Quakebar ( int len ) { static char bar [ 42 ] ; int i ; len = Math_Min ( len , sizeof ( bar ) - 2 ) ; len = Math_Min ( len , con_linewidth ) ; bar [ 0 ] = ' \35 ' ; for ( i = 1 ; i < len - 1 ; i ++ ) bar [ i ] = ' \36 ' ; bar [ len - 1 ] = ' \37 ' ; if ( len < con_linewidth ) { bar [ len ] = ' \n ' ; bar [ len + 1 ] = 0 ; } else bar [ len ] = 0 ; return bar ; }
johnfitz -- returns a bar of the desired length, but never wider than the console
includes a newline, unless len >= con_linewidth.
johnfitz -- returns a bar of the desired length but never wider than the console includes a newline unless len > = con_linewidth .