109 |
|
sprintf(errmsg, "undefined modifier \"%s\"", modname); |
110 |
|
objerror(m, USER, errmsg); |
111 |
|
} |
112 |
< |
raytexture(r, omod); |
113 |
< |
} else if (m->otype == PAT_BTEXT) { |
112 |
> |
if (rayshade(r, omod)) { |
113 |
> |
if (m->omod != OVOID) |
114 |
> |
objerror(m, USER, "inappropriate modifier"); |
115 |
> |
return(1); |
116 |
> |
} |
117 |
> |
} |
118 |
> |
if (m->otype == PAT_BTEXT) { |
119 |
|
if (foreground) |
120 |
|
scalecolor(r->pcol, m->oargs.farg[9]); |
121 |
|
else |
132 |
|
m->oargs.farg[14]); |
133 |
|
multcolor(r->pcol, cval); |
134 |
|
} |
135 |
+ |
return(0); |
136 |
|
} |
137 |
|
|
138 |
|
|
160 |
|
{ |
161 |
|
#define R (tm->oargs.farg+3) |
162 |
|
#define D (tm->oargs.farg+6) |
163 |
< |
extern char *strcpy(), *fgets(); |
163 |
> |
extern char *strcpy(); |
164 |
|
FVECT DxR; |
165 |
|
double d; |
166 |
|
FILE *fp; |