diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-10 23:30:12 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:11:04 +0200 |
commit | ee8b6d34447acab3ffb318dc8c070df890c1b810 (patch) | |
tree | 1b7bb1741effe3b7c9dee6582a60a380edb24e55 /src/tile.cpp | |
parent | 2115a766f6ef7eefc122d1c91a28fe94f664a11a (diff) | |
download | minetest-ee8b6d34447acab3ffb318dc8c070df890c1b810.tar.gz minetest-ee8b6d34447acab3ffb318dc8c070df890c1b810.tar.bz2 minetest-ee8b6d34447acab3ffb318dc8c070df890c1b810.zip |
Move images to data/textures and fix some path stuff; hope that installation still works
Diffstat (limited to 'src/tile.cpp')
-rw-r--r-- | src/tile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tile.cpp b/src/tile.cpp index 366f2dfb7..f328ab766 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -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); } |