97 |
|
case 'f': /* frame range */ |
98 |
|
switch (sscanf(argv[++i], "%d,%d", &fbeg, &fend)) { |
99 |
|
case 2: |
100 |
< |
if ((fbeg <= 0 | fend < fbeg)) |
100 |
> |
if ((fbeg <= 0) | (fend < fbeg)) |
101 |
|
goto userr; |
102 |
|
break; |
103 |
|
case 1: |
141 |
|
/* all done */ |
142 |
|
if (lorendoptf[0]) |
143 |
|
unlink(lorendoptf); |
144 |
< |
if (hirendoptf[0]) |
144 |
> |
if (hirendoptf[0] && strcmp(hirendoptf, lorendoptf)) |
145 |
|
unlink(hirendoptf); |
146 |
|
if (objtmpf[0]) |
147 |
|
unlink(objtmpf); |
299 |
|
if (isflt(om->prio_file)) { |
300 |
|
om->prio = atof(om->prio_file); |
301 |
|
om->prio_file[0] = '\0'; |
302 |
< |
haveprio |= (om->prio < 0.95 | om->prio > 1.05); |
302 |
> |
haveprio |= ((om->prio < 0.95) | (om->prio > 1.05)); |
303 |
|
} else |
304 |
|
haveprio = 1; |
305 |
|
} else |
334 |
|
if (qval != NULL && qval[0] == '-') |
335 |
|
ac += wordstring(av+ac, qval); |
336 |
|
|
337 |
< |
/* start with default parameters */ |
338 |
< |
ray_defaults(NULL); |
337 |
> |
/* restore default parameters */ |
338 |
> |
ray_restore(NULL); |
339 |
|
/* set what we have */ |
340 |
|
for (i = 0; i < ac; i++) { |
341 |
|
while ((rval = expandarg(&ac, &av, i)) > 0) |
349 |
|
continue; |
350 |
|
} |
351 |
|
rval = getrenderopt(ac-i, av+i); |
352 |
< |
if (rval >= 0) { |
353 |
< |
i += rval; |
354 |
< |
continue; |
352 |
> |
if (rval < 0) { |
353 |
> |
sprintf(errmsg, "bad render option at '%s'", av[i]); |
354 |
> |
error(USER, errmsg); |
355 |
|
} |
356 |
< |
sprintf(errmsg, "bad render option at '%s'", av[i]); |
357 |
< |
error(USER, errmsg); |
356 |
> |
i += rval; |
357 |
|
} |
358 |
|
} |
359 |
|
|
571 |
|
return(1.0); |
572 |
|
|
573 |
|
expval = atof(s); |
574 |
< |
if ((s[0] == '+' | s[0] == '-')) |
574 |
> |
if ((s[0] == '+') | (s[0] == '-')) |
575 |
|
return(pow(2.0, expval)); |
576 |
|
return(expval); |
577 |
|
} |
791 |
|
objnm = obj_move[i].name; |
792 |
|
len = strlen(objnm); |
793 |
|
if (!strncmp(onm, objnm, len)) { |
794 |
< |
if ((obj_move[i].parent < 0 & onm[len] == '.')) |
794 |
> |
if ((obj_move[i].parent < 0) & (onm[len] == '.')) |
795 |
|
break; |
796 |
|
objnm = getobjname(&obj_move[i]) + len; |
797 |
|
len2 = strlen(objnm); |