Skip to content

Commit

Permalink
Use imageformats_nopath so that textures directory is searched.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemebond committed Sep 25, 2024
1 parent 0c17657 commit 20a6633
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions image.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,10 +1076,8 @@ unsigned char *loadimagepixelsbgra (const char *filename, qbool complain, qbool
firstformat = imageformats_textures;
else if (!strcasecmp(path, "gfx") || !strcasecmp(path, "locale")) // locale/ is used in GAME_BLOODOMNICIDE
firstformat = imageformats_gfx;
else if (!path[0])
firstformat = imageformats_nopath;
else
firstformat = imageformats_other;
firstformat = imageformats_nopath;
// now try all the formats in the selected list
for (format = firstformat;format->formatstring;format++)
{
Expand Down

0 comments on commit 20a6633

Please sign in to comment.