Fix sprite textures in models
This commit is contained in:
parent
9ab3acae2d
commit
152c540c1e
|
@ -527,7 +527,7 @@ void HWR_InitModels(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// length of the player model prefix
|
// length of the player model prefix
|
||||||
prefixlen = strlen(PLAYERMODELPREFIX);
|
prefixlen = strlen(PLAYERMODELPREFIX);
|
||||||
|
|
||||||
|
@ -1470,7 +1470,7 @@ boolean HWR_DrawModel(gl_vissprite_t *spr)
|
||||||
// Instead of the != operator, memcmp is used to avoid a compiler warning.
|
// Instead of the != operator, memcmp is used to avoid a compiler warning.
|
||||||
if (memcmp(&(hwrPatch->max_s), &(md2->model->max_s), sizeof(md2->model->max_s)) != 0 ||
|
if (memcmp(&(hwrPatch->max_s), &(md2->model->max_s), sizeof(md2->model->max_s)) != 0 ||
|
||||||
memcmp(&(hwrPatch->max_t), &(md2->model->max_t), sizeof(md2->model->max_t)) != 0)
|
memcmp(&(hwrPatch->max_t), &(md2->model->max_t), sizeof(md2->model->max_t)) != 0)
|
||||||
adjustTextureCoords(md2->model, gpatch);
|
adjustTextureCoords(md2->model, spr->gpatch);
|
||||||
HWR_GetMappedPatch(spr->gpatch, spr->colormap);
|
HWR_GetMappedPatch(spr->gpatch, spr->colormap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue