37 |
|
CUBE *scene; |
38 |
|
char *ofn[]; |
39 |
|
{ |
40 |
+ |
extern int fputs(); |
41 |
|
char sbuf[512]; |
42 |
|
int nf; |
43 |
|
OBJECT fnobjects; |
55 |
|
} |
56 |
|
} |
57 |
|
/* get header */ |
58 |
< |
if (load & IO_INFO) |
59 |
< |
copyheader(infp, stdout); |
59 |
< |
else |
60 |
< |
getheader(infp, NULL); |
58 |
> |
if (checkheader(infp, OCTFMT, load&IO_INFO ? stdout : NULL) < 0) |
59 |
> |
octerror(USER, "not an octree"); |
60 |
|
/* check format */ |
61 |
|
if (getint(2) != OCTMAGIC) |
62 |
< |
octerror(USER, "invalid octree format"); |
62 |
> |
octerror(USER, "incompatible octree format"); |
63 |
|
/* get boundaries */ |
64 |
|
if (load & IO_BOUNDS) { |
65 |
|
for (i = 0; i < 3; i++) |