diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-05-20 20:43:18 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-05-20 20:43:18 +0000 |
commit | ea1ed930673bb4063bb210a6b1a34364a9093d77 (patch) | |
tree | cb79a0b0871e6addeff6cfcdb599a52c6f618e60 /source/cl_console.c | |
parent | cb43ed08c3cf6410fe4ce22dac3d07952db92893 (diff) |
Updated menu scripts syntax.
Updated client docs.
Diffstat (limited to 'source/cl_console.c')
-rw-r--r-- | source/cl_console.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/cl_console.c b/source/cl_console.c index 1417679..659a5f9 100644 --- a/source/cl_console.c +++ b/source/cl_console.c @@ -769,13 +769,13 @@ void Con_DrawSolidConsole( void ) { //ZOID // draw the download bar // figure out width - if( cls.download ) { + if( cls.download.file ) { int n, j; - if( ( text = strrchr( cls.downloadname, '/') ) != NULL ) + if( ( text = strrchr( cls.download.name, '/') ) != NULL ) text++; else - text = cls.downloadname; + text = cls.download.name; x = con.linewidth - ( ( con.linewidth * 7 ) / 40 ); y = x - strlen( text ) - 8; @@ -792,7 +792,7 @@ void Con_DrawSolidConsole( void ) { i = strlen( buffer ); buffer[i++] = '\x80'; // where's the dot go? - n = y * cls.downloadpercent / 100; + n = y * cls.download.percent / 100; for ( j = 0; j < y; j++ ) { if ( j == n ) { buffer[i++] = '\x83'; @@ -803,7 +803,7 @@ void Con_DrawSolidConsole( void ) { buffer[i++] = '\x82'; buffer[i] = 0; - sprintf( buffer + i, " %02d%%", cls.downloadpercent ); + sprintf( buffer + i, " %02d%%", cls.download.percent ); // draw it y = vislines - 10; @@ -884,7 +884,7 @@ void Con_RunConsole( void ) { } if( cls.state > ca_disconnected && cls.state < ca_active ) { -#if 1 +#if 0 // draw half-screen console con.destHeight = min( con.maxHeight, 0.5f ); con.currentHeight = con.destHeight; |