Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unsupported extensions from list in tile.cpp
  • Loading branch information
hecktest committed Jul 29, 2021
1 parent 80d12db commit 28c98f9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/client/tile.cpp
Expand Up @@ -81,12 +81,8 @@ static bool replace_ext(std::string &path, const char *ext)
std::string getImagePath(std::string path)
{
// A NULL-ended list of possible image extensions
const char *extensions[] = {
"png", "jpg", "bmp", "tga",
"pcx", "ppm", "psd", "wal", "rgb",
NULL
};
// If there is no extension, add one
const char *extensions[] = { "png", "jpg", "bmp", NULL };
// If there is no extension, assume PNG
if (removeStringEnd(path, extensions).empty())
path = path + ".png";
// Check paths until something is found to exist
Expand Down

0 comments on commit 28c98f9

Please sign in to comment.