X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=FixObj%2Fobj.c;h=01d885fdb823ad1e6e9b70a5c62f4b97d15c0fef;hb=0fc4892bc602e8ac315761ecb46705ccd017e4e3;hp=19b87d4b12dad3381ff45a3c2648c2aa5911ee9b;hpb=6aaf9bebc7fd32577008866c6a93b507d9f5a0ac;p=flightgear.git diff --git a/FixObj/obj.c b/FixObj/obj.c index 19b87d4b1..01d885fdb 100644 --- a/FixObj/obj.c +++ b/FixObj/obj.c @@ -208,6 +208,11 @@ void obj_fix(char *infile, char *outfile) { printf("new tri strip = %s", line); sscanf(line, "t %d %d %d %d\n", &n1, &n2, &n3, &n4); + /* special case to handle a bug in our beloved tri striper */ + if ( (n1 == 4) && (n2 == 2) && (n3 == 2) && (n4 == 1) ) { + n2 = 3; + } + dot_prod = check_cur_face(n1, n2, n3); if ( dot_prod < -0.5 ) { /* this stripe is backwards (CW) */ @@ -283,9 +288,12 @@ void obj_fix(char *infile, char *outfile) { /* $Log$ -/* Revision 1.2 1998/01/09 23:03:12 curt -/* Restructured to split 1deg x 1deg dem's into 64 subsections. +/* Revision 1.3 1998/01/19 19:51:07 curt +/* A couple final pre-release tweaks. /* + * Revision 1.2 1998/01/09 23:03:12 curt + * Restructured to split 1deg x 1deg dem's into 64 subsections. + * * Revision 1.1 1997/12/08 19:28:54 curt * Initial revision. *