Debian Codegraph @

regression_tests/q3map2/base_winding/base_winding_logging.patch

raw
1 Index: tools/quake3/q3map2/brush.c
2 ===================================================================
3 --- tools/quake3/q3map2/brush.c (revision 369)
4 +++ tools/quake3/q3map2/brush.c (working copy)
5 @@ -357,6 +357,8 @@
6 side_t *side;
7 plane_t *plane;
8
9 + static int brushord = -1;
10 + brushord++;
11
12 /* walk the list of brush sides */
13 for( i = 0; i < brush->numsides; i++ )
14 @@ -367,6 +369,13 @@
15
16 /* make huge winding */
17 w = BaseWindingForPlane( plane->normal, plane->dist );
18 + Sys_Printf(">>> BaseWindingForPlane() for brush %i, side %i is as follows:\n", brushord, i);
19 + for (j = 0; j < w->numpoints; j++) {
20 + Sys_Printf(">>> (%.1f %.1f %.1f) [rounded to nearest integer coordinates]\n",
21 + Q_rint(w->p[j][0]),
22 + Q_rint(w->p[j][1]),
23 + Q_rint(w->p[j][2]));
24 + }
25
26 /* walk the list of brush sides */
27 for( j = 0; j < brush->numsides && w != NULL; j++ )