X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=cl_screen.c;h=68bf62da5493fc3c1a9adb12c4d094401a1f470c;hb=2319e933019f2bd60f2ef245079a0f8c4428d3e0;hp=284f85438791184b10cbd5096020b9b583549fc1;hpb=4983a56b807f0576b8629d38920ab9e78146547e;p=xonotic%2Fdarkplaces.git diff --git a/cl_screen.c b/cl_screen.c index 284f8543..68bf62da 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -1001,7 +1001,7 @@ extern cvar_t r_viewscale; extern float viewscalefpsadjusted; static void R_TimeReport_EndFrame(void) { - int i, j, lines, y; + int j, lines; cl_locnode_t *loc; char string[1024+4096]; mleaf_t *viewleaf; @@ -1065,6 +1065,7 @@ static void R_TimeReport_EndFrame(void) if (string[0]) { + int i, y; if (string[strlen(string)-1] == '\n') string[strlen(string)-1] = 0; lines = 1; @@ -1096,12 +1097,13 @@ static void R_TimeReport_EndFrame(void) if (r_speeds_graph.integer) { // if we currently have no graph data, reset the graph data entirely + int i; if (!cls.r_speeds_graph_data) for (i = 0;i < r_stat_count;i++) cls.r_speeds_graph_datamin[i] = cls.r_speeds_graph_datamax[i] = 0; if (cls.r_speeds_graph_length != r_speeds_graph_length.integer) { - int i, stat, index, d, graph_length, *graph_data; + int stat, index, d, graph_length, *graph_data; cls.r_speeds_graph_length = r_speeds_graph_length.integer; cls.r_speeds_graph_current = 0; if (cls.r_speeds_graph_data) @@ -1136,7 +1138,7 @@ static void R_TimeReport_EndFrame(void) { char legend[128]; r_vertexgeneric_t *v; - int numlines; + int i, numlines; const int *data; float x, y, width, height, scalex, scaley; int range_default = max(r_speeds_graph_maxdefault.integer, 1);