mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-01 01:25:38 +03:00
Fixed segroup precache for models with 1 seqgroup (some that models have garbage in first seqgroup, first seqgroup is also reserved for sequences in model)
This commit is contained in:
parent
e003ef04a2
commit
53faac8ead
@ -1473,10 +1473,12 @@ int EXT_FUNC PF_precache_model_I(const char *s)
|
||||
|
||||
PF_precache_model_I(textureModelName);
|
||||
}
|
||||
if (pStudioHeader->numseqgroups)
|
||||
// 0 seqgroup is reserved for sequences in this model
|
||||
if (pStudioHeader->numseqgroups > 1)
|
||||
{
|
||||
mstudioseqgroup_t *pSeqGroup = (mstudioseqgroup_t *)((uint8_t *)pStudioHeader + pStudioHeader->seqgroupindex);
|
||||
for (int i = 0; i < pStudioHeader->numseqgroups; i++, pSeqGroup++)
|
||||
++pSeqGroup;
|
||||
for (int i = 1; i < pStudioHeader->numseqgroups; i++, pSeqGroup++)
|
||||
{
|
||||
if (pSeqGroup->name[0] == '\0')
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user