| 32 |
|
|
| 33 |
|
|
| 34 |
|
static unsigned long |
| 35 |
< |
cvhash(cvp) /* hash an encoded vertex */ |
| 36 |
< |
MCVERT *cvp; |
| 35 |
> |
cvhash(const char *p) /* hash an encoded vertex */ |
| 36 |
|
{ |
| 37 |
+ |
const MCVERT *cvp = (const MCVERT *)p; |
| 38 |
|
unsigned long hval; |
| 39 |
|
|
| 40 |
|
if (!(cvp->fl & MT_V)) |
| 49 |
|
|
| 50 |
|
|
| 51 |
|
static int |
| 52 |
< |
cvcmp(v1, v2) /* compare encoded vertices */ |
| 53 |
< |
register MCVERT *v1, *v2; |
| 52 |
> |
cvcmp(const char *vv1, const char *vv2) /* compare encoded vertices */ |
| 53 |
|
{ |
| 54 |
+ |
const MCVERT *v1 = (const MCVERT *)vv1, *v2 = (const MCVERT *)vv2; |
| 55 |
|
if (v1->fl != v2->fl) |
| 56 |
|
return(1); |
| 57 |
|
if (v1->xyz[0] != v2->xyz[0]) |
| 613 |
|
t2cnt += pp->nj2tris; |
| 614 |
|
} |
| 615 |
|
fprintf(fp, "Mesh statistics:\n"); |
| 616 |
< |
fprintf(fp, "\t%ld materials\n", ms->nmats); |
| 616 |
> |
fprintf(fp, "\t%ld materials\n", (long)ms->nmats); |
| 617 |
|
fprintf(fp, "\t%d patches (%.2f MBytes)\n", ms->npatches, |
| 618 |
|
(ms->npatches*sizeof(MESHPATCH) + |
| 619 |
|
vcnt*3*sizeof(uint32) + |