From 526654d3dd5b9a7670c3268b9aa787ecaf4b9b90 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 1 Sep 2010 07:52:20 +0200 Subject: [PATCH] another debug print --- tools/quake3/q3map2/surface_meta.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/quake3/q3map2/surface_meta.c b/tools/quake3/q3map2/surface_meta.c index 8b68ce77..c077dcee 100644 --- a/tools/quake3/q3map2/surface_meta.c +++ b/tools/quake3/q3map2/surface_meta.c @@ -483,6 +483,11 @@ int MaxAreaIndexes(bspDrawVert_t *vert, int cnt, int *indexes) } } + /* + if(bestV < 0) + printf("value was REALLY bad\n"); + */ + if(bestA < TINY_AREA) /* the biggest triangle is degenerate - then every other is too, and the other algorithms wouldn't generate anything useful either */ return 0; -- 2.39.2