Whitespace, and a workaround for show_* misplacement.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2003-03-03 19:20:44 +00:00
parent d469a06620
commit 2000954a2c
3 changed files with 11 additions and 8 deletions

View file

@ -327,7 +327,7 @@ SCR_DrawFPS (void)
}
x = hudswap ? vid.width - ((strlen (st) * 8) + i) : i;
y = vid.height - r_lineadj - 8;
y = vid.height - sb_lines - 8;
Draw_String (x, y, st);
}
@ -363,7 +363,7 @@ SCR_DrawTime (void)
// Print it at far left/right of screen
x = hudswap ? (vid.width - ((strlen (st) * 8) + 8)) : 8;
y = vid.height - (r_lineadj + 8);
y = vid.height - sb_lines - 8;
Draw_String (x, y, st);
}

View file

@ -56,6 +56,7 @@ static __attribute__ ((unused)) const char rcsid[] =
#include "r_cvar.h"
#include "sbar.h"
static void
SCR_DrawNet (void)
{
@ -77,8 +78,10 @@ CL_NetStats (void)
return;
if (cls.state != ca_active)
return;
x = hudswap ? vid.width - 104 : 0;
y = vid.height - sb_lines - 16;
// request new ping times every two seconds
if (!cls.demoplayback && realtime - cl.last_ping_request > 2) {
cl.last_ping_request = realtime;
@ -87,6 +90,7 @@ CL_NetStats (void)
}
if (show_ping->int_val) {
int ping = cl.players[cl.playernum].ping;
ping = bound (0, ping, 999);
Draw_String (x, y, va ("%3d ms", ping));
x+= 48;
@ -120,7 +124,6 @@ static SCR_Func scr_funcs[] = {
0
};
void
CL_UpdateScreen (double realtime)
{