169 |
|
/* initialize object types */ |
170 |
|
initotypes(); |
171 |
|
/* initialize urand */ |
172 |
< |
srandom(rand_samp ? (long)time(0) : 0L); |
173 |
< |
initurand(2048); |
172 |
> |
if (rand_samp) { |
173 |
> |
srandom((long)time(0)); |
174 |
> |
initurand(0); |
175 |
> |
} else { |
176 |
> |
srandom(0L); |
177 |
> |
initurand(2048); |
178 |
> |
} |
179 |
|
/* set up signal handling */ |
180 |
|
sigdie(SIGINT, "Interrupt"); |
181 |
|
sigdie(SIGHUP, "Hangup"); |
307 |
|
ourview.type==VT_HEM ? "hemispherical" : |
308 |
|
ourview.type==VT_ANG ? "angular" : |
309 |
|
ourview.type==VT_CYL ? "cylindrical" : |
310 |
+ |
ourview.type==VT_PLS ? "planisphere" : |
311 |
|
"unknown"); |
312 |
|
printf("-vp %f %f %f\t# view point\n", |
313 |
|
ourview.vp[0], ourview.vp[1], ourview.vp[2]); |