mirror of
https://github.com/yquake2/ref_vk.git
synced 2024-11-10 06:41:45 +00:00
Support Quake2 ReRelease textures
This commit is contained in:
parent
dc678793ea
commit
e54c635c21
2 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue