76 |
|
int nscenef = 0; /* number of scene files */ |
77 |
|
char *octree; /* octree name (NULL if unnec.) */ |
78 |
|
|
79 |
< |
SUBPROC rtpd; /* rtrace process descriptors */ |
79 |
> |
SUBPROC rtpd = SP_INACTIVE; /* rtrace process descriptors */ |
80 |
|
|
81 |
|
int silent = 0; /* run rad silently? */ |
82 |
|
int backvis = 1; /* back faces visible? */ |
211 |
|
if (ourdisplay != NULL) |
212 |
|
dev_close(); |
213 |
|
/* if (rtpd.pid > 0) { */ |
214 |
< |
if (rtpd.running) { |
214 |
> |
if (rtpd.flags & PF_RUNNING) { |
215 |
|
if (close_process(&rtpd) > 0) |
216 |
|
wputs("bad exit status from rtrace\n"); |
217 |
|
/* rtpd.pid = 0; */ |
741 |
|
float fbuf[6]; |
742 |
|
/* check to see if rtrace is running */ |
743 |
|
/* if (rtpd.pid <= 0) */ |
744 |
< |
if (!rtpd.running) |
744 |
> |
if (!(rtpd.flags & PF_RUNNING)) |
745 |
|
return(0); |
746 |
|
/* assign origin */ |
747 |
|
fbuf[0] = org[0]; fbuf[1] = org[1]; fbuf[2] = org[2]; |