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

View file

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