diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-25 18:11:54 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-25 18:11:54 +0000 |
commit | 32a6373c7a8072bfcb4567417f82f700084b6ab8 (patch) | |
tree | 248900b93f0f79c36123dc92364ccf9b0db3bcee /crawl-ref/source/files.cc | |
parent | 0136740f19467e681f934718d109748458fa49c6 (diff) | |
download | crawl-ref-32a6373c7a8072bfcb4567417f82f700084b6ab8.tar.gz crawl-ref-32a6373c7a8072bfcb4567417f82f700084b6ab8.zip |
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
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |