summaryrefslogtreecommitdiff
path: root/src/d_iwad.c
diff options
context:
space:
mode:
authorSimon Howard2007-01-14 05:20:28 +0000
committerSimon Howard2007-01-14 05:20:28 +0000
commit7a6f9ad53b3917b00d3815ed8d948c69d4d48efd (patch)
tree292e5b8f55aa2bd61e0cc660a2438c5a6a74de2d /src/d_iwad.c
parentc380b055804a0616e7ad23054d5c151cffe3399a (diff)
downloadchocolate-doom-7a6f9ad53b3917b00d3815ed8d948c69d4d48efd.tar.gz
chocolate-doom-7a6f9ad53b3917b00d3815ed8d948c69d4d48efd.tar.bz2
chocolate-doom-7a6f9ad53b3917b00d3815ed8d948c69d4d48efd.zip
Fix savegamedir directory generation.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 829
Diffstat (limited to 'src/d_iwad.c')
-rw-r--r--src/d_iwad.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/d_iwad.c b/src/d_iwad.c
index 519172da..f352f1c2 100644
--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -391,8 +391,8 @@ static void BuildIWADDirList(void)
if (doomwaddir != NULL)
{
- AddIWADDir(doomwaddir);
- }
+ AddIWADDir(doomwaddir);
+ }
// Add dirs from DOOMWADPATH
@@ -555,7 +555,8 @@ void D_SetSaveGameDir(void)
{
if (gamemission == iwads[i].mission)
{
- sprintf(savegamedir, "%c%s%c",
+ sprintf(savegamedir + strlen(savegamedir),
+ "%c%s%c",
DIR_SEPARATOR, iwads[i].name, DIR_SEPARATOR);
M_MakeDirectory(savegamedir);
break;