forked from github/server
Probleme mit resourcen die im plural und singular gleich heissen
update.log mit statusänderungen
This commit is contained in:
parent
0807eb70c2
commit
c67918f345
|
@ -2595,6 +2595,7 @@ renumber_factions(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
if (updatelog) fprintf(updatelog, "renum %s %s\n", itoa36(rp->faction->no), itoa36(rp->want));
|
||||
rp->faction->no = rp->want;
|
||||
register_faction_id(rp->want);
|
||||
fset(rp->faction, FF_NEWID);
|
||||
|
|
|
@ -78,6 +78,7 @@ faction *factions;
|
|||
settings global;
|
||||
char buf[BUFSIZE + 1];
|
||||
FILE *logfile;
|
||||
FILE *updatelog;
|
||||
const struct race * new_race[MAXRACES];
|
||||
|
||||
race_t
|
||||
|
@ -2396,6 +2397,7 @@ remove_empty_factions(void)
|
|||
faction **fp, *f3;
|
||||
FILE *dofp;
|
||||
char zText[MAX_PATH];
|
||||
FILE * log = fopen("update.log", "a");
|
||||
|
||||
sprintf(zText, "%s/dropouts", basepath());
|
||||
|
||||
|
@ -2413,6 +2415,7 @@ remove_empty_factions(void)
|
|||
/* Einfach in eine Datei schreiben und später vermailen */
|
||||
|
||||
fprintf(dofp, "%s\n", f->email);
|
||||
if (updatelog) fprintf(updatelog, "dropout %s\n", itoa36(f->no));
|
||||
|
||||
for (f3 = factions; f3; f3 = f3->next) {
|
||||
ally * sf;
|
||||
|
|
|
@ -1179,4 +1179,5 @@ typedef struct settings {
|
|||
} settings;
|
||||
extern settings global;
|
||||
|
||||
extern FILE * updatelog;
|
||||
#endif
|
||||
|
|
|
@ -1323,6 +1323,9 @@ static translate_t translation[] = {
|
|||
{ "Delphin", "dolphin", "dolphin_p", "dolphin", "dolphin_p" },
|
||||
{ "Holz", "log", "log_p", "log", "log_p" },
|
||||
{ "Eisen", "iron", "iron_p", "iron", "iron_p" },
|
||||
{ "Drachenblut", "dragonblood", "dragonblood_p", "dragonblood", "dragonblood_p" },
|
||||
{ "Feenstiefel", "fairyboot", "fairyboot_p", "fairyboot", "fairyboot_p" },
|
||||
{ "Mallorn", "mallorn", "mallorn_p", "mallorn", "mallorn_p" },
|
||||
{ "Wagen", "cart", "cart_p", "cart", "cart_p" },
|
||||
{ "Plattenpanzer", "plate", "plate_p", "plate", "plate_p" },
|
||||
{ "Balsam", "balm", "balm_p", "balm", "balm_p" },
|
||||
|
|
|
@ -161,7 +161,6 @@ game_init(void)
|
|||
creport_init();
|
||||
|
||||
debug_language("locales.log");
|
||||
|
||||
init_races();
|
||||
init_items();
|
||||
init_spells();
|
||||
|
@ -549,6 +548,7 @@ main(int argc, char *argv[])
|
|||
int i;
|
||||
char zText[MAX_PATH];
|
||||
|
||||
updatelog = fopen("update.log", "w");
|
||||
log_open("eressea.log");
|
||||
printf("\n%s PBEM host\n"
|
||||
"Copyright (C) 1996-2001 C.Schlittchen, K.Zedel, E.Rehling, H.Peters.\n\n"
|
||||
|
@ -725,5 +725,6 @@ main(int argc, char *argv[])
|
|||
#endif
|
||||
kernel_done();
|
||||
log_close();
|
||||
fclose(updatelog);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue