mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-24 04:01:37 +00:00
comment patches from Misty
This commit is contained in:
parent
02f14aa326
commit
dbbc2cd777
3 changed files with 3 additions and 4 deletions
|
@ -1256,7 +1256,7 @@ void CL_Init_Cvars (void)
|
||||||
"display realtime frames per second");
|
"display realtime frames per second");
|
||||||
// Misty: I like to be able to see the time when I play
|
// Misty: I like to be able to see the time when I play
|
||||||
show_time = Cvar_Get("show_time", "0", CVAR_NONE,
|
show_time = Cvar_Get("show_time", "0", CVAR_NONE,
|
||||||
"display time in 24 hr:min format");
|
"display the current time");
|
||||||
host_speeds = Cvar_Get("host_speeds", "0", CVAR_NONE,
|
host_speeds = Cvar_Get("host_speeds", "0", CVAR_NONE,
|
||||||
"display host processing times");
|
"display host processing times");
|
||||||
developer = Cvar_Get("developer", "0", CVAR_NONE,
|
developer = Cvar_Get("developer", "0", CVAR_NONE,
|
||||||
|
|
|
@ -510,7 +510,7 @@ void SCR_DrawTime (void)
|
||||||
localtime(&systime));
|
localtime(&systime));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now actually print it to the screen directly below where show_fps is */
|
/* now actually print it to the screen directly above where show_fps is */
|
||||||
snprintf (st, sizeof(st), "%s", local_time);
|
snprintf (st, sizeof(st), "%s", local_time);
|
||||||
x = cl_hudswap->int_val ? vid.width - ((strlen (st) * 8) + 8) : 8;
|
x = cl_hudswap->int_val ? vid.width - ((strlen (st) * 8) + 8) : 8;
|
||||||
y = vid.height - sb_lines - 16;
|
y = vid.height - sb_lines - 16;
|
||||||
|
|
|
@ -506,7 +506,6 @@ void SCR_DrawFPS (void)
|
||||||
fps_count = 0;
|
fps_count = 0;
|
||||||
lastframetime = t;
|
lastframetime = t;
|
||||||
}
|
}
|
||||||
/* Misty: I really do need to read about snprintf a bit. This thing keeps chewing on my foot! */
|
|
||||||
snprintf (st, sizeof(st), "%-3d FPS", lastfps);
|
snprintf (st, sizeof(st), "%-3d FPS", lastfps);
|
||||||
/* Misty: New trick! (for me) the ? makes this work like a if then else - IE: if
|
/* Misty: New trick! (for me) the ? makes this work like a if then else - IE: if
|
||||||
cl_hudswap->int_val is not null, do first case, else (else is a : here) do second case.
|
cl_hudswap->int_val is not null, do first case, else (else is a : here) do second case.
|
||||||
|
@ -543,7 +542,7 @@ void SCR_DrawTime (void)
|
||||||
localtime (&systime));
|
localtime (&systime));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now actually print it to the screen directly below where show_fps is */
|
/* now actually print it to the screen directly above where show_fps is */
|
||||||
snprintf (st, sizeof(st), "%s", local_time);
|
snprintf (st, sizeof(st), "%s", local_time);
|
||||||
x = cl_hudswap->int_val ? vid.width - ((strlen (st) * 8) + 8) : 8;
|
x = cl_hudswap->int_val ? vid.width - ((strlen (st) * 8) + 8) : 8;
|
||||||
y = vid.height - sb_lines - 16;
|
y = vid.height - sb_lines - 16;
|
||||||
|
|
Loading…
Reference in a new issue