--- ray/src/util/rad.c 2015/05/26 10:00:47 2.112 +++ ray/src/util/rad.c 2015/05/27 12:50:46 2.113 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rad.c,v 2.112 2015/05/26 10:00:47 greg Exp $"; +static const char RCSid[] = "$Id: rad.c,v 2.113 2015/05/27 12:50:46 greg Exp $"; #endif /* * Executive program for oconv, rpict and pfilt @@ -402,7 +402,7 @@ checkfiles(void) /* check for existence and modified pcmapname = savqstr(fntemp); pcmapdate = fdate(pcmapname); if (pgmapname == NULL && !nowarn) - fprintf(stderr, "%s: '%s' assigned without '%s'\n", + fprintf(stderr, "%s: warning - '%s' assigned without '%s'\n", progname, vnam(PCMAP), vnam(PGMAP)); } matdate = checklast(vval(MATERIAL)); @@ -659,13 +659,13 @@ mkpmap(void) /* run mkpmap if indicated */ else badvalue(REPORT); } - if (vdef(PGMAP)) { + if (pgmapname != NULL && pgmapdate < oct1date) { cp = addarg(cp, "-apg"); addarg(cp, vval(PGMAP)); cp = sskip(sskip(cp)); /* remove any bandwidth */ *cp = '\0'; } - if (vdef(PCMAP)) { + if (pcmapname != NULL && pcmapdate < oct1date) { cp = addarg(cp, "-apc"); addarg(cp, vval(PCMAP)); cp = sskip(sskip(cp)); /* remove any bandwidth */