forked from github/server
writegame schreib das datenfile in den falschen folder
This commit is contained in:
parent
b7dde0bcf0
commit
1f661db9ec
|
@ -1325,7 +1325,8 @@ writegame(const char *filename, char quiet)
|
||||||
|
|
||||||
/* write_dynamictypes(); */
|
/* write_dynamictypes(); */
|
||||||
|
|
||||||
F = cfopen(filename, "w");
|
sprintf(buf, "%s/%s", datapath(), filename);
|
||||||
|
F = cfopen(buf, "w");
|
||||||
if (F==NULL)
|
if (F==NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
|
@ -343,7 +343,7 @@ processturn(char *filename)
|
||||||
#endif /* FUZZY_BASE36 */
|
#endif /* FUZZY_BASE36 */
|
||||||
if (!nowrite) {
|
if (!nowrite) {
|
||||||
char ztext[64];
|
char ztext[64];
|
||||||
sprintf(ztext, "%s/%d", datapath(), turn);
|
sprintf(ztext, "%d", turn);
|
||||||
return writegame(ztext, 0);
|
return writegame(ztext, 0);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue