home *** CD-ROM | disk | FTP | other *** search
- /***
- **** QuBE --- BSP tree manipulation routine.
- ***/
-
- #include "qube.h"
- #include "tree.h"
-
- /*
- ** TreeList. Not a lot, but it does the job.
- */
-
- void TreeList(void)
- {
- short int i, j, k;
- unsigned long readcount;
-
- struct {
- unsigned long int line; /* What is this? A VSD pointer? */
- short int left;
- short int right;
- } tree;
-
- if (header.id != 0x17)
- Error("Not a valid .BSP file");
-
- fseek(fi, header.tree, SEEK_SET);
-
- for (i = 0, readcount = 0L; readcount < header.treelen; readcount += 8, i++) {
- fread(&tree, 8, 1, fi);
- printf("%4d: %4d %4d (%ld)", i, tree.left, tree.right, tree.line);
- printf("\n");
- }
- }
-
-