From 1f661db9ecbf785fc2d5bd5a501de715b41bf609 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 28 Dec 2003 10:58:26 +0000 Subject: [PATCH] writegame schreib das datenfile in den falschen folder --- src/common/kernel/save.c | 3 ++- src/eressea/main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/kernel/save.c b/src/common/kernel/save.c index 4c3ca3b93..da94866d1 100644 --- a/src/common/kernel/save.c +++ b/src/common/kernel/save.c @@ -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; diff --git a/src/eressea/main.c b/src/eressea/main.c index 040db9cb9..e2abe0cae 100644 --- a/src/eressea/main.c +++ b/src/eressea/main.c @@ -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;