From d55f9e4a4d3a2c4be89eeb5cfc1e8b80744a80dc Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Sat, 19 May 2001 17:32:04 +0000 Subject: [PATCH] diff noise. blech. --- nq/source/console.c | 32 ++++++++++++++++---------------- qw/source/console.c | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/nq/source/console.c b/nq/source/console.c index d63217492..1d23bf752 100644 --- a/nq/source/console.c +++ b/nq/source/console.c @@ -521,22 +521,22 @@ Con_DrawDownload (int lines) char *text; char dlbar[1024]; - if (!cls.download) - return; + if (!cls.download) + return; - text = COM_SkipPath(cls.downloadname); - - x = con_linewidth - ((con_linewidth * 7) / 40); - y = x - strlen (text) - 8; - i = con_linewidth / 3; - if (strlen (text) > i) { - y = x - i - 11; - strncpy (dlbar, text, i); - dlbar[i] = 0; - strncat (dlbar, "...", sizeof (dlbar) - strlen (dlbar)); - } else - strncpy (dlbar, text, sizeof (dlbar)); - strncat (dlbar, ": ", sizeof (dlbar) - strlen (dlbar)); + text = COM_SkipPath(cls.downloadname); + + x = con_linewidth - ((con_linewidth * 7) / 40); + y = x - strlen (text) - 8; + i = con_linewidth / 3; + if (strlen (text) > i) { + y = x - i - 11; + strncpy (dlbar, text, i); + dlbar[i] = 0; + strncat (dlbar, "...", sizeof (dlbar) - strlen (dlbar)); + } else + strncpy (dlbar, text, sizeof (dlbar)); + strncat (dlbar, ": ", sizeof (dlbar) - strlen (dlbar)); i = strlen (dlbar); dlbar[i++] = '\x80'; // where's the dot go? @@ -552,7 +552,7 @@ Con_DrawDownload (int lines) dlbar[i++] = '\x82'; dlbar[i] = 0; - snprintf (dlbar + strlen (dlbar), sizeof (dlbar) - strlen (dlbar), + snprintf (dlbar + strlen (dlbar), sizeof (dlbar) - strlen (dlbar), " %02d%%", cls.downloadpercent); // draw it y = lines - 22 + 8; diff --git a/qw/source/console.c b/qw/source/console.c index 5c2487c89..1d23bf752 100644 --- a/qw/source/console.c +++ b/qw/source/console.c @@ -544,7 +544,7 @@ Con_DrawDownload (int lines) n = 0; else n = y * cls.downloadpercent / 100; - for (j = 0; j < y; j++) + for (j = 0; j < y; j++) if (j == n) dlbar[i++] = '\x83'; else