# | Line 269 | Line 269 | register char **av; | |
---|---|---|
269 | c_cmaterial->ts_c = *c_ccolor; | |
270 | c_cmaterial->clock++; | |
271 | return(MG_OK); | |
272 | + | case MG_E_SIDES: /* set number of sides */ |
273 | + | if (ac != 2) |
274 | + | return(MG_EARGC); |
275 | + | if (!isint(av[1])) |
276 | + | return(MG_ETYPE); |
277 | + | i = atoi(av[1]); |
278 | + | if (i == 1) |
279 | + | c_cmaterial->sided = 1; |
280 | + | else if (i == 2) |
281 | + | c_cmaterial->sided = 0; |
282 | + | else |
283 | + | return(MG_EILL); |
284 | + | c_cmaterial->clock++; |
285 | + | return(MG_OK); |
286 | } | |
287 | return(MG_EUNK); | |
288 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |