mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
fix heretic2 like sprite path
This commit is contained in:
parent
34830efda1
commit
92a0bcf128
1 changed files with 7 additions and 0 deletions
|
@ -1203,6 +1203,13 @@ Mod_LoadSP2 (const char *mod_name, const void *buffer, int modfilelen,
|
||||||
memcpy(sprout->frames[i].name, sprin->frames[i].name, MAX_SKINNAME);
|
memcpy(sprout->frames[i].name, sprin->frames[i].name, MAX_SKINNAME);
|
||||||
|
|
||||||
skins[i] = find_image((char *)sprout->frames[i].name, it_sprite);
|
skins[i] = find_image((char *)sprout->frames[i].name, it_sprite);
|
||||||
|
if (!skins[i])
|
||||||
|
{
|
||||||
|
/* heretic2 sprites have no "sprites/" prefix */
|
||||||
|
snprintf(sprout->frames[i].name, MAX_SKINNAME,
|
||||||
|
"sprites/%s", sprin->frames[i].name);
|
||||||
|
skins[i] = find_image(sprout->frames[i].name, it_sprite);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*type = mod_sprite;
|
*type = mod_sprite;
|
||||||
|
|
Loading…
Reference in a new issue