mirror of
https://github.com/yquake2/ref_vk.git
synced 2024-12-02 16:31:51 +00:00
Fix compile warnings
This commit is contained in:
parent
5ba12c08b4
commit
6537a0e81a
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue