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/gl_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/gl_draw.c')
-rw-r--r-- | source/gl_draw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/gl_draw.c b/source/gl_draw.c index 51f6b9c..bf24608 100644 --- a/source/gl_draw.c +++ b/source/gl_draw.c @@ -248,8 +248,8 @@ void Draw_Char( int x, int y, uint32 flags, int ch, qhandle_t hFont ) { draw.color, R_ImageForHandle( hFont ) ); } -void Draw_String( int x, int y, uint32 flags, int maxChars, - const char *string, qhandle_t hFont ) +int Draw_String( int x, int y, uint32 flags, int maxChars, + const char *string, qhandle_t hFont ) { byte c; float s, t; @@ -300,6 +300,7 @@ void Draw_String( int x, int y, uint32 flags, int maxChars, colors[ ( c >> 7 ) & 1 ], image ); x += 8; } + return x; } image_t *r_charset; |