ref: 7a6f9ad53b3917b00d3815ed8d948c69d4d48efd
parent: c380b055804a0616e7ad23054d5c151cffe3399a
author: Simon Howard <fraggle@gmail.com>
date: Sun Jan 14 00:20:28 EST 2007
Fix savegamedir directory generation. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 829
--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -391,8 +391,8 @@
if (doomwaddir != NULL)
{
- AddIWADDir(doomwaddir);
- }
+ AddIWADDir(doomwaddir);
+ }
// Add dirs from DOOMWADPATH
@@ -555,7 +555,8 @@
{
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;