Support Quake2 ReRelease textures

This commit is contained in:
Denis Pauk 2023-08-13 15:30:01 +03:00
parent dc678793ea
commit e54c635c21
2 changed files with 8 additions and 1 deletions

View File

@ -640,6 +640,13 @@ R_FindPic(const char *name, findimage_t find_image)
Com_sprintf(pathname, sizeof(pathname), "pics/%s.pcx", name);
image = find_image(pathname, it_pic);
/* Quake 2 Re-Release */
if (!image)
{
Com_sprintf(pathname, sizeof(pathname), "pics/%s.png", name);
image = find_image(pathname, it_pic);
}
/* Heretic 2 */
if (!image)
{

View File

@ -34,7 +34,7 @@ void Draw_InitLocal (void)
draw_chars = R_FindPic ("conchars", (findimage_t)Vk_FindImage);
if (!draw_chars)
{
ri.Sys_Error(ERR_FATAL, "%s: Couldn't load pics/conchars.pcx",
ri.Sys_Error(ERR_FATAL, "%s: Couldn't load pics/conchars",
__func__);
}
}