writegame schreib das datenfile in den falschen folder

This commit is contained in:
Enno Rehling 2003-12-28 10:58:26 +00:00
parent b7dde0bcf0
commit 1f661db9ec
2 changed files with 3 additions and 2 deletions

View File

@ -1325,7 +1325,8 @@ writegame(const char *filename, char quiet)
/* write_dynamictypes(); */
F = cfopen(filename, "w");
sprintf(buf, "%s/%s", datapath(), filename);
F = cfopen(buf, "w");
if (F==NULL)
return -1;

View File

@ -343,7 +343,7 @@ processturn(char *filename)
#endif /* FUZZY_BASE36 */
if (!nowrite) {
char ztext[64];
sprintf(ztext, "%s/%d", datapath(), turn);
sprintf(ztext, "%d", turn);
return writegame(ztext, 0);
}
return 0;