8 |
|
*/ |
9 |
|
|
10 |
|
#include "standard.h" |
11 |
< |
|
11 |
> |
#include "platform.h" |
12 |
|
#include "octree.h" |
13 |
– |
|
13 |
|
#include "object.h" |
15 |
– |
|
14 |
|
#include "otypes.h" |
17 |
– |
|
15 |
|
#include "paths.h" |
16 |
|
|
17 |
|
#define OMARGIN (10*FTINY) /* margin around global cube */ |
22 |
|
|
23 |
|
int nowarn = 0; /* supress warnings? */ |
24 |
|
|
25 |
< |
int objlim = 5; /* # of objects before split */ |
25 |
> |
int objlim = 6; /* # of objects before split */ |
26 |
|
|
27 |
< |
int resolu = 8192; /* octree resolution limit */ |
27 |
> |
int resolu = 16384; /* octree resolution limit */ |
28 |
|
|
29 |
|
CUBE thescene = {EMPTY, {0.0, 0.0, 0.0}, 0.0}; /* our scene */ |
30 |
|
|
82 |
|
break; |
83 |
|
} |
84 |
|
breakopt: |
85 |
< |
#ifdef MSDOS |
89 |
< |
setmode(fileno(stdout), O_BINARY); |
90 |
< |
#endif |
85 |
> |
SET_FILE_BINARY(stdout); |
86 |
|
if (infile != NULL) { /* get old octree & objects */ |
87 |
|
if (thescene.cusize > FTINY) |
88 |
|
error(USER, "only one of '-b' or '-i'"); |
191 |
|
inln = 0; |
192 |
|
} |
193 |
|
|
194 |
+ |
/* conflicting def's in param.h */ |
195 |
+ |
#undef tstbit |
196 |
+ |
#undef setbit |
197 |
+ |
#undef clrbit |
198 |
+ |
#undef tglbit |
199 |
|
|
200 |
|
#define bitop(f,i,op) (f[((i)>>3)] op (1<<((i)&7))) |
201 |
|
#define tstbit(f,i) bitop(f,i,&) |