aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/tile.cpp2
-rw-r--r--src/server.cpp2
2 files changed, 2 insertions, 2 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";
diff --git a/src/server.cpp b/src/server.cpp
index 8474bc6f1..7fb9a78e9 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -2453,7 +2453,7 @@ bool Server::addMediaFile(const std::string &filename,
}
// If name is not in a supported format, ignore it
const char *supported_ext[] = {
- ".png", ".jpg", ".bmp",
+ ".png", ".jpg", ".bmp", ".tga",
".ogg",
".x", ".b3d", ".obj",
// Custom translation file format