ServerRemotePlayer implements ServerActiveObject
[oweals/minetest.git] / src / tile.cpp
index 366f2dfb798d6b66b54115d74deb9c3dbcb9279a..f328ab766d74d0273752c775689f9f9b3f51ddce 100644 (file)
@@ -130,7 +130,8 @@ std::string getTexturePath(const std::string &filename)
        */
        if(fullpath == "")
        {
-               std::string testpath = porting::getDataPath(filename.c_str());
+               std::string rel_path = std::string("textures")+DIR_DELIM+filename;
+               std::string testpath = porting::path_data + DIR_DELIM + rel_path;
                // Check all filename extensions. Returns "" if not found.
                fullpath = getImagePath(testpath);
        }