aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tile.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index 25f8a000b..73c286fb3 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -132,6 +132,18 @@ std::string getTexturePath(const std::string &filename)
}
/*
+ Check from $user/textures/all
+ */
+ if(fullpath == "")
+ {
+ std::string texture_path = porting::path_user + DIR_DELIM
+ + "textures" + DIR_DELIM + "all";
+ std::string testpath = texture_path + DIR_DELIM + filename;
+ // Check all filename extensions. Returns "" if not found.
+ fullpath = getImagePath(testpath);
+ }
+
+ /*
Check from default data directory
*/
if(fullpath == "")