summaryrefslogtreecommitdiff
path: root/src/w_wad.c
diff options
context:
space:
mode:
authorSimon Howard2006-12-22 15:22:40 +0000
committerSimon Howard2006-12-22 15:22:40 +0000
commit4df4383d18115a25c13c4d132de01428330b5a5d (patch)
treedf733516400040744860c30079e0475dd865e347 /src/w_wad.c
parenteaa92320c8b89b41bfc3c296f1a23ec74fe2abc0 (diff)
downloadchocolate-doom-4df4383d18115a25c13c4d132de01428330b5a5d.tar.gz
chocolate-doom-4df4383d18115a25c13c4d132de01428330b5a5d.tar.bz2
chocolate-doom-4df4383d18115a25c13c4d132de01428330b5a5d.zip
Add definitions for PATH and directory separators.
Allow multiple directories to be specified in DOOMWADDIR, in the same way as PATH. Make -iwad search through all search paths for the specified IWAD. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 799
Diffstat (limited to 'src/w_wad.c')
-rw-r--r--src/w_wad.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/w_wad.c b/src/w_wad.c
index 397ec457..0e438140 100644
--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -79,9 +79,7 @@ static void ExtractFileBase(char *path, char *dest)
src = path + strlen(path) - 1;
// back up until a \ or the start
- while (src != path
- && *(src-1) != '\\'
- && *(src-1) != '/')
+ while (src != path && *(src - 1) != DIR_SEPARATOR)
{
src--;
}