diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-11-23 18:01:39 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-11-23 18:01:39 +0000 |
commit | 3f0f134217531bd2f7d099f12e4ea77d3565cf91 (patch) | |
tree | 274f3849b8bbaa26bc2018db75bee9795bb3e3ce /source/sw_draw.c | |
parent | 2479c40e2c820cb3e9eabe9e116148187f84d11a (diff) |
Added `com_uptime' macro.
Version string no longer overdraws long command line in console.
Cap `gl_celshading' value to 5 to prevent possible cheating.
Diffstat (limited to 'source/sw_draw.c')
-rw-r--r-- | source/sw_draw.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/sw_draw.c b/source/sw_draw.c index 6f3c119..4f3845e 100644 --- a/source/sw_draw.c +++ b/source/sw_draw.c @@ -582,7 +582,7 @@ void Draw_Char( int x, int y, uint32 flags, int ch, qhandle_t hFont ) { Draw_String =============== */ -void Draw_String( int x, int y, int flags, int maxChars, +int Draw_String( int x, int y, int flags, int maxChars, const char *string, qhandle_t hFont ) { image_t *image; @@ -591,11 +591,11 @@ void Draw_String( int x, int y, int flags, int maxChars, int color, mask; if( !hFont ) { - return; + return x; } image = R_ImageForHandle( hFont ); if( image->width != 128 || image->height != 128 ) { - return; + return x; } mask = 0; @@ -648,10 +648,8 @@ void Draw_String( int x, int y, int flags, int maxChars, } x += 8; - } - - + return x; } /* |