[Plib-cvs] CVS: plib/src/ssg ssgLoadFLT.cxx,1.28,1.29
Brought to you by:
sjbaker
From: M?rten Str?m. <str...@us...> - 2002-02-27 22:30:14
|
Update of /cvsroot/plib/plib/src/ssg In directory usw-pr-cvs1:/tmp/cvs-serv32630 Modified Files: ssgLoadFLT.cxx Log Message: Minor fix. Index: ssgLoadFLT.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadFLT.cxx,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- ssgLoadFLT.cxx 18 Dec 2001 16:35:59 -0000 1.28 +++ ssgLoadFLT.cxx 27 Feb 2002 20:05:11 -0000 1.29 @@ -1138,6 +1138,7 @@ ulSetError(UL_WARNING, "[flt] This file is probably rather old (obsolete opcodes ignored)."); ObsoleteFlag = 1; } + //printf("op %d obsolete\n", op); } static void NotImplemented(int op) @@ -1146,6 +1147,7 @@ ulSetError(UL_WARNING, "[flt] This file contains opcodes that are not implemented."); NotImplementedFlag = 1; } + //printf("op %d not implemented\n", op); } static void ReportBadChunk(const ubyte *ptr, const char *name) @@ -2135,10 +2137,12 @@ sgSetVec2(a->range, (float)v[0], (float)v[1]); get64v(ptr + 40, v, 3); sgSetVec3(a->center, (float)v[0], (float)v[1], (float)v[2]); - /* break; */ + stack[sp] = new ssgBranch; + break; } default: //lint !e616 stack[sp] = new ssgBranch; + break; } if (ptr[4]) stack[sp]->setName((char *)ptr + 4); @@ -2198,6 +2202,7 @@ case 101: /* Light Source Bead */ case 122: /* Push Attribute */ case 123: /* Pop Attribute */ + //printf("op %d ignored\n", op); ptr += len; break; @@ -2482,6 +2487,8 @@ case 93: /* Sound Palette */ case 97: /* Line Style Palette */ case 102: /* Light Source Palette */ + case 103: /* Reserved */ + case 104: /* Reserved */ case 112: /* Texture Mapping */ case 114: /* Name Table */ /* these are safe to ignore */ @@ -2489,6 +2496,7 @@ break; default: + //printf("op %d: end of table chunks\n", op); done = 1; } } |