# | Line 738 | Line 738 | char *s; | |
---|---|---|
738 | strcpy(matspec, "back of "); | |
739 | if (mod != NULL) { | |
740 | strcat(matspec, mod->oname); | |
741 | < | if (mat != mod) |
742 | < | sprintf(matspec+strlen(matspec), " (%s)", |
743 | < | mat!=NULL ? mat->oname : VOIDID); |
741 | > | if (mat != mod && mat != NULL) |
742 | > | sprintf(matspec+strlen(matspec), |
743 | > | " (%s)", mat->oname); |
744 | } else | |
745 | strcat(matspec, VOIDID); | |
746 | sprintf(buf, "ray hit %s %s \"%s\"", matspec, |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |