mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
Whitespace, and a workaround for show_* misplacement.
This commit is contained in:
parent
d469a06620
commit
2000954a2c
3 changed files with 11 additions and 8 deletions
|
@ -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;
|
||||
|
@ -94,7 +98,7 @@ CL_NetStats (void)
|
|||
x += 56;
|
||||
}
|
||||
if (show_ping->int_val && show_pl->int_val) {
|
||||
Draw_String(x, y, "/");
|
||||
Draw_String (x, y, "/");
|
||||
x += 8;
|
||||
}
|
||||
if (show_pl->int_val) {
|
||||
|
@ -120,7 +124,6 @@ static SCR_Func scr_funcs[] = {
|
|||
0
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
CL_UpdateScreen (double realtime)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue