| # | Line 48 | Line 48 | getcone(o, getxf) /* get cone structure */ | |
|---|---|---|
| 48 | register OBJREC *o; | |
| 49 | int getxf; | |
| 50 | { | |
| 51 | – | extern double sqrt(); |
| 51 | int sgn0, sgn1; | |
| 52 | register CONE *co; | |
| 53 | ||
| # | Line 155 | Line 154 | OBJREC *o; | |
| 154 | { | |
| 155 | register CONE *co = (CONE *)o->os; | |
| 156 | ||
| 157 | < | if (o->os == NULL) |
| 157 | > | if (co == NULL) |
| 158 | return; | |
| 159 | if (co->tm != NULL) | |
| 160 | free((char *)co->tm); | |
| 161 | < | free(o->os); |
| 161 | > | free((char *)co); |
| 162 | o->os = NULL; | |
| 163 | } | |
| 164 | ||
| # | Line 167 | Line 166 | OBJREC *o; | |
| 166 | conexform(co) /* get cone transformation matrix */ | |
| 167 | register CONE *co; | |
| 168 | { | |
| 170 | – | extern double sqrt(); |
| 169 | MAT4 m4; | |
| 170 | register double d; | |
| 171 | register int i; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |