summaryrefslogtreecommitdiff
path: root/src/tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile.cpp')
-rw-r--r--src/tile.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index 6e4fde011..726f7f602 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -131,18 +131,6 @@ std::string getTexturePath(const std::string &filename)
// Check all filename extensions. Returns "" if not found.
fullpath = getImagePath(testpath);
}
-
- /*
- 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
@@ -163,6 +151,11 @@ std::string getTexturePath(const std::string &filename)
return fullpath;
}
+void clearTextureNameCache()
+{
+ g_texturename_to_path_cache.clear();
+}
+
/*
Stores internal information about a texture.
*/