- Tippfehler

This commit is contained in:
Christian Schlittchen 2003-01-19 09:00:00 +00:00
parent 0bcda8731c
commit 54447452b1
1 changed files with 3 additions and 2 deletions

View File

@ -277,13 +277,14 @@ score(void)
sprintf(buf, "%s/score.alliances", basepath()); sprintf(buf, "%s/score.alliances", basepath());
scoreFP = fopen(buf, "w"); scoreFP = fopen(buf, "w");
fprintf(scoreFP, "# alliance:persons:score\n"); fprintf(scoreFP, "# alliance:factions:persons:score\n");
for (a = alliances; a; a = a->next) { for (a = alliances; a; a = a->next) {
int alliance_score = 0, alliance_number = 0; int alliance_score = 0, alliance_number = 0, alliance_faction = 0;
for (f = factions; f; f = f->next) { for (f = factions; f; f = f->next) {
if(f->alliance && f->alliance->id == a->id) { if(f->alliance && f->alliance->id == a->id) {
alliance_faction++;
alliance_score += f->score; alliance_score += f->score;
alliance_number += f->number; alliance_number += f->number;
} }