From 67a6bc4ab5be607c4a9f9a349dee629e864c2d42 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 16 Oct 2011 16:16:47 +0300 Subject: Fix map delete on windows (concatenate paths correctly with / or \ depending on OS) --- src/tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tile.cpp') 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); } -- cgit v1.2.3