mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
wrong
This commit is contained in:
parent
e277afd397
commit
712180ae07
1 changed files with 13 additions and 1 deletions
|
@ -2932,7 +2932,19 @@ Mod_LoadModel_MDA_Text(const char *mod_name, char *curr_buff,
|
||||||
pheader = (dmdx_t *)extradata;
|
pheader = (dmdx_t *)extradata;
|
||||||
for (i=0; i < pheader->num_skins; i++)
|
for (i=0; i < pheader->num_skins; i++)
|
||||||
{
|
{
|
||||||
printf("%s|%s:%s\n", mod_name, base_model, (char *)pheader + pheader->ofs_skins + i*MAX_SKINNAME);
|
char *skin;
|
||||||
|
|
||||||
|
skin = (char *)pheader + pheader->ofs_skins + i * MAX_SKINNAME;
|
||||||
|
if (!strchr(skin, '/') && !strchr(skin, '\\'))
|
||||||
|
{
|
||||||
|
char skin_path[MAX_QPATH * 2] = {0};
|
||||||
|
|
||||||
|
strncpy(skin_path, base_model, sizeof(skin_path));
|
||||||
|
strcpy(strrchr(skin_path, '/') + 1, skin);
|
||||||
|
|
||||||
|
strncpy(skin, skin_path, MAX_SKINNAME);
|
||||||
|
printf("%s|%s:%s\n", mod_name, skin_path, skin);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue