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); Com_sprintf(pathname, sizeof(pathname), "pics/%s.pcx", name);
image = find_image(pathname, it_pic); 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 */ /* Heretic 2 */
if (!image) if (!image)
{ {

View file

@ -34,7 +34,7 @@ void Draw_InitLocal (void)
draw_chars = R_FindPic ("conchars", (findimage_t)Vk_FindImage); draw_chars = R_FindPic ("conchars", (findimage_t)Vk_FindImage);
if (!draw_chars) 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__); __func__);
} }
} }