From 61cfc6a5db207e3931e2f1de31ea795c92a31aff Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Sat, 6 Jan 2001 07:52:22 +0000 Subject: [PATCH] Whitespace, lose a != NULL --- source/console.c | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/source/console.c b/source/console.c index ce809ef..54382d5 100644 --- a/source/console.c +++ b/source/console.c @@ -31,11 +31,13 @@ #endif #include + #ifdef HAVE_STRING_H -#include +# include #endif + #ifdef HAVE_STRINGS_H -#include +# include #endif #include "client.h" @@ -53,9 +55,7 @@ int con_ormask; console_t con_main; console_t con_chat; -console_t *con; // point to either con_main or - - // con_chat +console_t *con; // point to either con_main or con_chat int con_linewidth; // characters across screen int con_totallines; // total lines in console scrollback @@ -66,15 +66,11 @@ float con_cursorspeed = 4; cvar_t *con_notifytime; // seconds #define NUM_CON_TIMES 4 -float con_times[NUM_CON_TIMES]; // realtime time the line was - - // generated - // for transparent notify lines +float con_times[NUM_CON_TIMES]; // realtime time the line was generated + // for transparent notify lines int con_vislines; -int con_notifylines; // scan lines to clear for notify - - // lines +int con_notifylines; // scan lines to clear for notify lines qboolean con_debuglog; @@ -86,7 +82,6 @@ extern int key_linepos; qboolean con_initialized; - void Key_ClearTyping (void) { @@ -618,7 +613,7 @@ Con_DrawConsole (int lines) // draw the download bar // figure out width if (cls.download) { - if ((text = strrchr (cls.downloadname, '/')) != NULL) + if ((text = strrchr (cls.downloadname, '/'))) text++; else text = cls.downloadname;