Fix compile warnings

This commit is contained in:
Denis Pauk 2023-08-23 12:32:56 +03:00
parent 5ba12c08b4
commit 6537a0e81a
2 changed files with 8 additions and 2 deletions

View file

@ -611,6 +611,13 @@ GetTexImage(const char *name, findimage_t find_image)
Com_sprintf(pathname, sizeof(pathname), "textures/%s.wal", name);
image = find_image(pathname, it_wall);
/* Quake2 Re-Release Nintendo 64 */
if (!image)
{
Com_sprintf(pathname, sizeof(pathname), "textures/%s.tga", name);
image = find_image(pathname, it_wall);
}
/* Heretic 2 */
if (!image)
{

View file

@ -463,8 +463,7 @@ Mod_LoadBSPX(int filesize, byte* mod_base)
xheader = (bspx_header_t*)(mod_base + xofs);
if (LittleLong(xheader->ident) != BSPXHEADER)
{
R_Printf(PRINT_ALL, "%s: Incorrect header ident.\n",
__func__, xheader->ident, BSPXHEADER);
R_Printf(PRINT_ALL, "%s: Incorrect header ident.\n", __func__);
return NULL;
}