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);
|
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
|
static void
|
||||||
out_faction(FILE *file, faction *f)
|
out_faction(FILE *file, faction *f)
|
||||||
{
|
{
|
||||||
|
@ -3635,8 +3653,8 @@ report_summary(summary * s, summary * o, boolean full)
|
||||||
fclose(F);
|
fclose(F);
|
||||||
|
|
||||||
if (full) {
|
if (full) {
|
||||||
FILE * F;
|
|
||||||
#ifdef PLAYER_CSV
|
#ifdef PLAYER_CSV
|
||||||
|
FILE *F;
|
||||||
region * r;
|
region * r;
|
||||||
#endif
|
#endif
|
||||||
printf("Schreibe Liste der Adressen (adressen)...\n");
|
printf("Schreibe Liste der Adressen (adressen)...\n");
|
||||||
|
@ -3644,15 +3662,8 @@ report_summary(summary * s, summary * o, boolean full)
|
||||||
writenewssubscriptions();
|
writenewssubscriptions();
|
||||||
writeforward();
|
writeforward();
|
||||||
|
|
||||||
{
|
printf("writing date & turn\n");
|
||||||
char zText[MAX_PATH];
|
writeturn();
|
||||||
sprintf(zText, "%s/datum", basepath());
|
|
||||||
F = cfopen(zText, "w");
|
|
||||||
if (!F) return;
|
|
||||||
}
|
|
||||||
printf("Schreibe Datum (datum)...\n");
|
|
||||||
fputs(gamedate2(), F);
|
|
||||||
fclose(F);
|
|
||||||
|
|
||||||
#ifdef PLAYER_CSV
|
#ifdef PLAYER_CSV
|
||||||
{
|
{
|
||||||
|
|
|
@ -5120,15 +5120,12 @@
|
||||||
</locale>
|
</locale>
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message name="phunger">
|
<message name="phunger" section="events">
|
||||||
<type>
|
<type>
|
||||||
<arg name="dead" type="int"></arg>
|
<arg name="dead" type="int"></arg>
|
||||||
</type>
|
</type>
|
||||||
<locale name="de">
|
<text locale="de">"$if($eq($dead,1),"Ein Bauer","$dead Bauern") verhungert."</text>
|
||||||
<nr section="events">
|
<text locale="en">"$if($eq($dead,1),"One peasant starves","$dead peasants starve")."</text>
|
||||||
<text>"An Unterernährung sterben $int($dead) Bauern."</text>
|
|
||||||
</nr>
|
|
||||||
</locale>
|
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message name="renamed_seen">
|
<message name="renamed_seen">
|
||||||
|
|
Loading…
Reference in New Issue