aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorROllerozxa <temporaryemail4meh+github@gmail.com>2021-09-15 12:12:24 +0200
committerGitHub <noreply@github.com>2021-09-15 11:12:24 +0100
commit6fedee16f098549ffaee188b02b777239513abc3 (patch)
tree081521a2ca8c94d717d9797228e68bd68635805d /src/client
parent719a12ecac1c5363612e0c230eae411bdb3fe058 (diff)
downloadminetest-6fedee16f098549ffaee188b02b777239513abc3.tar.gz
minetest-6fedee16f098549ffaee188b02b777239513abc3.tar.bz2
minetest-6fedee16f098549ffaee188b02b777239513abc3.zip
Readd TGA to the list of valid texture formats. (#11598)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/tile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/tile.cpp b/src/client/tile.cpp
index 15ae5472d..a31e3aca1 100644
--- a/src/client/tile.cpp
+++ b/src/client/tile.cpp
@@ -81,7 +81,7 @@ 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", NULL };
+ const char *extensions[] = { "png", "jpg", "bmp", "tga", NULL };
// If there is no extension, assume PNG
if (removeStringEnd(path, extensions).empty())
path = path + ".png";