Fixed the netgraph

This commit is contained in:
Joseph Carter 2001-03-03 11:05:20 +00:00
parent fe26a1c565
commit 9c39a00a54
2 changed files with 3 additions and 3 deletions

View file

@ -273,7 +273,7 @@ R_Init_Cvars (void)
r_timegraph = Cvar_Get ("r_timegraph", "0", CVAR_NONE, "Toggle the display of a performance graph");
r_netgraph = Cvar_Get ("r_netgraph", "0", CVAR_NONE, "Toggle the display of a graph showing network performance");
r_zgraph = Cvar_Get ("r_zgraph", "0", CVAR_NONE, "Toggle the graph that reports the changes of z-axis position");
r_graphheight = Cvar_Get ("r_graphheight", "15", CVAR_NONE, "Set the number of lines displayed in the various graphs");
r_graphheight = Cvar_Get ("r_graphheight", "32", CVAR_NONE, "Set the number of lines displayed in the various graphs");
r_drawflat = Cvar_Get ("r_drawflat", "0", CVAR_NONE, "Toggles the drawing of textures");
r_ambient = Cvar_Get ("r_ambient", "0", CVAR_NONE, "Determines the ambient lighting for a level");
r_clearcolor = Cvar_Get ("r_clearcolor", "2", CVAR_NONE, "This sets the color for areas outside of the current map");

View file

@ -158,7 +158,7 @@ R_LineGraph (int x, int y, int h)
if (h > s)
h = s;
for (i = 0; i < h; i++, dest -= vid.rowbytes * 2) {
for (i = 0; i < h; i++, dest -= vid.rowbytes) {
dest[0] = color;
// *(dest-vid.rowbytes) = 0x30;
}
@ -246,7 +246,7 @@ R_NetGraph (void)
}
x = cl_hudswap->int_val ? vid.width - (NET_TIMINGS + 8) : 8;
y += 8;
y = vid.height + 24 - sb_lines - r_graphheight->int_val - 1;
for (a = 0; a < NET_TIMINGS; a++) {
i = (cls.netchan.outgoing_sequence - a) & NET_TIMINGSMASK;