10 |
|
#include <stdio.h> |
11 |
|
#include <time.h> |
12 |
|
|
13 |
– |
#include "standard.h" |
13 |
|
#include "platform.h" |
14 |
+ |
#include "rtprocess.h" |
15 |
+ |
#include "standard.h" |
16 |
|
#include "octree.h" |
17 |
|
#include "object.h" |
18 |
|
#include "otypes.h" |
19 |
|
#include "resolu.h" |
20 |
|
|
21 |
< |
static double ogetflt(); |
22 |
< |
static long ogetint(); |
23 |
< |
static char *ogetstr(); |
24 |
< |
static int nonsurfinset(); |
21 |
> |
static double ogetflt(void); |
22 |
> |
static long ogetint(int); |
23 |
> |
static char *ogetstr(char *); |
24 |
> |
static int nonsurfinset(OBJECT *); |
25 |
|
static void octerror(int etyp, char *msg); |
26 |
|
static void skiptree(void); |
27 |
< |
static OCTREE getfullnode(), gettree(); |
27 |
> |
static OCTREE getfullnode(void), gettree(void); |
28 |
|
|
29 |
|
static char *infn; /* input file specification */ |
30 |
|
static FILE *infp; /* input file stream */ |
100 |
|
else if (load & IO_SCENE && nf == 0) |
101 |
|
skiptree(); |
102 |
|
|
103 |
< |
if (load & IO_SCENE) /* get the scene */ |
103 |
> |
if (load & IO_SCENE) { /* get the scene */ |
104 |
|
if (nf == 0) { |
105 |
|
/* load binary scene data */ |
106 |
|
readscene(infp, objsize); |
113 |
|
if (dosets(nonsurfinset)) |
114 |
|
octerror(USER, "modifier in tree; octree stale?"); |
115 |
|
} |
116 |
+ |
} |
117 |
|
/* close the input */ |
118 |
|
if (infn[0] == '!') |
119 |
|
pclose(infp); |
202 |
|
default: |
203 |
|
octerror(USER, "damaged octree"); |
204 |
|
} |
205 |
< |
return NULL; /* pro forma return */ |
205 |
> |
return EMPTY; /* pro forma return */ |
206 |
|
} |
207 |
|
|
208 |
|
|