From 7a6f9ad53b3917b00d3815ed8d948c69d4d48efd Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 14 Jan 2007 05:20:28 +0000 Subject: Fix savegamedir directory generation. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 829 --- src/d_iwad.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/d_iwad.c') 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; -- cgit v1.2.3