summaryrefslogtreecommitdiff
path: root/src/tile.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-10-16 16:16:47 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-10-16 16:16:47 +0300
commit67a6bc4ab5be607c4a9f9a349dee629e864c2d42 (patch)
treea07c396e114a21ccfede1bd9cd28470e1bd178b3 /src/tile.cpp
parentef397dca7c4adb4216e5063a01a487889bf28abd (diff)
downloadminetest-67a6bc4ab5be607c4a9f9a349dee629e864c2d42.tar.gz
minetest-67a6bc4ab5be607c4a9f9a349dee629e864c2d42.tar.bz2
minetest-67a6bc4ab5be607c4a9f9a349dee629e864c2d42.zip
Fix map delete on windows (concatenate paths correctly with / or \ depending on OS)
Diffstat (limited to 'src/tile.cpp')
-rw-r--r--src/tile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index 3fa363547..4e441329a 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -118,7 +118,7 @@ std::string getTexturePath(const std::string &filename)
std::string texture_path = g_settings->get("texture_path");
if(texture_path != "")
{
- std::string testpath = texture_path + '/' + filename;
+ std::string testpath = texture_path + DIR_DELIM + filename;
// Check all filename extensions. Returns "" if not found.
fullpath = getImagePath(testpath);
}