mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix sprite textures in models
This commit is contained in:
parent
b8a13e6006
commit
688384c79b
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue