aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorhecktest <>2021-07-29 21:47:08 +0200
committerhecktest <>2021-07-29 21:47:08 +0200
commit28c98f9fa54ea64d094b530f2f87c4e5e1c19bd6 (patch)
tree10099ed2aa173bc86119fbb27c967c19d127029d /src/client
parent80d12dbedb67191a5eb3e4f3c36b04baed1f8afb (diff)
downloadminetest-28c98f9fa54ea64d094b530f2f87c4e5e1c19bd6.tar.gz
minetest-28c98f9fa54ea64d094b530f2f87c4e5e1c19bd6.tar.bz2
minetest-28c98f9fa54ea64d094b530f2f87c4e5e1c19bd6.zip
Remove unsupported extensions from list in tile.cpp
Diffstat (limited to 'src/client')
-rw-r--r--src/client/tile.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/tile.cpp b/src/client/tile.cpp
index 96312ea27..15ae5472d 100644
--- a/src/client/tile.cpp
+++ b/src/client/tile.cpp
@@ -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