diff --git a/src/common/gamecode/report.c b/src/common/gamecode/report.c index db516a879..6df0a4f59 100644 --- a/src/common/gamecode/report.c +++ b/src/common/gamecode/report.c @@ -3467,6 +3467,24 @@ writeforward(void) fclose(forwardFile); } +static void +writeturn(void) +{ + char zText[MAX_PATH]; + FILE *f; + + sprintf(zText, "%s/datum", basepath()); + f = cfopen(zText, "w"); + if (!f) return; + fputs(gamedate2(), f); + fclose(f); + sprintf(zText, "%s/turn", basepath()); + f = cfopen(zText, "w"); + if (!f) return; + fprintf(f,"%d",turn); + fclose(f); +} + static void out_faction(FILE *file, faction *f) { @@ -3635,8 +3653,8 @@ report_summary(summary * s, summary * o, boolean full) fclose(F); if (full) { - FILE * F; #ifdef PLAYER_CSV + FILE *F; region * r; #endif printf("Schreibe Liste der Adressen (adressen)...\n"); @@ -3644,15 +3662,8 @@ report_summary(summary * s, summary * o, boolean full) writenewssubscriptions(); writeforward(); - { - char zText[MAX_PATH]; - sprintf(zText, "%s/datum", basepath()); - F = cfopen(zText, "w"); - if (!F) return; - } - printf("Schreibe Datum (datum)...\n"); - fputs(gamedate2(), F); - fclose(F); + printf("writing date & turn\n"); + writeturn(); #ifdef PLAYER_CSV { diff --git a/src/res/de/messages.xml b/src/res/de/messages.xml index 7dc73c309..4cd71a31e 100644 --- a/src/res/de/messages.xml +++ b/src/res/de/messages.xml @@ -5120,15 +5120,12 @@ - + - - - "An Unterernährung sterben $int($dead) Bauern." - - + "$if($eq($dead,1),"Ein Bauer","$dead Bauern") verhungert." + "$if($eq($dead,1),"One peasant starves","$dead peasants starve")."