Skip to content

Commit 28c98f9

Browse files
author
hecktest
committedJul 29, 2021
Remove unsupported extensions from list in tile.cpp
1 parent 80d12db commit 28c98f9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎src/client/tile.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,8 @@ static bool replace_ext(std::string &path, const char *ext)
8181
std::string getImagePath(std::string path)
8282
{
8383
// A NULL-ended list of possible image extensions
84-
const char *extensions[] = {
85-
"png", "jpg", "bmp", "tga",
86-
"pcx", "ppm", "psd", "wal", "rgb",
87-
NULL
88-
};
89-
// If there is no extension, add one
84+
const char *extensions[] = { "png", "jpg", "bmp", NULL };
85+
// If there is no extension, assume PNG
9086
if (removeStringEnd(path, extensions).empty())
9187
path = path + ".png";
9288
// Check paths until something is found to exist

0 commit comments

Comments
 (0)
Please sign in to comment.