From 32a6373c7a8072bfcb4567417f82f700084b6ab8 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 25 Jan 2008 18:11:54 +0000 Subject: Fix collision between gotoxy(int,int,int) and DOS djgpp gotoxy(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3337 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/files.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/files.cc') diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 8de0fc3b40..eed436232c 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -348,7 +348,6 @@ static bool create_dirs(const std::string &dir) for (int i = 0, size = segments.size(); i < size; ++i) { path += segments[i]; - path += FILE_SEPARATOR; // Handle absolute paths correctly. if (i == 0 && dir.size() && dir[0] == FILE_SEPARATOR) @@ -356,6 +355,8 @@ static bool create_dirs(const std::string &dir) if (!dir_exists(path) && create_directory(path.c_str())) return (false); + + path += FILE_SEPARATOR; } return (true); } -- cgit v1.2.3-54-g00ecf