forked from github/server
- Aktuelle Zugnummer in Datei. (Brauche ich für neues Backupkonzept.)
This commit is contained in:
parent
fe0d2b576f
commit
4eb23fe3ad
|
@ -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
|
||||
{
|
||||
|
|
|
@ -5120,15 +5120,12 @@
|
|||
</locale>
|
||||
</message>
|
||||
|
||||
<message name="phunger">
|
||||
<message name="phunger" section="events">
|
||||
<type>
|
||||
<arg name="dead" type="int"></arg>
|
||||
</type>
|
||||
<locale name="de">
|
||||
<nr section="events">
|
||||
<text>"An Unterernährung sterben $int($dead) Bauern."</text>
|
||||
</nr>
|
||||
</locale>
|
||||
<text locale="de">"$if($eq($dead,1),"Ein Bauer","$dead Bauern") verhungert."</text>
|
||||
<text locale="en">"$if($eq($dead,1),"One peasant starves","$dead peasants starve")."</text>
|
||||
</message>
|
||||
|
||||
<message name="renamed_seen">
|
||||
|
|
Loading…
Reference in New Issue