Skip to content

Commit 6fedee1

Browse files
authoredSep 15, 2021
Readd TGA to the list of valid texture formats. (#11598)
1 parent 719a12e commit 6fedee1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/client/tile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ 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[] = { "png", "jpg", "bmp", NULL };
84+
const char *extensions[] = { "png", "jpg", "bmp", "tga", NULL };
8585
// If there is no extension, assume PNG
8686
if (removeStringEnd(path, extensions).empty())
8787
path = path + ".png";

‎src/server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ bool Server::addMediaFile(const std::string &filename,
24532453
}
24542454
// If name is not in a supported format, ignore it
24552455
const char *supported_ext[] = {
2456-
".png", ".jpg", ".bmp",
2456+
".png", ".jpg", ".bmp", ".tga",
24572457
".ogg",
24582458
".x", ".b3d", ".obj",
24592459
// Custom translation file format

0 commit comments

Comments
 (0)
Please sign in to comment.