forked from github/server
bug in alliance-scoring
This commit is contained in:
parent
2e1537cb2c
commit
72b8a79fc9
|
@ -289,7 +289,6 @@ score(void)
|
||||||
alliance_factions++;
|
alliance_factions++;
|
||||||
alliance_score += f->score;
|
alliance_score += f->score;
|
||||||
alliance_number += f->number;
|
alliance_number += f->number;
|
||||||
}
|
|
||||||
if (token!=NULL) {
|
if (token!=NULL) {
|
||||||
unit * u = f->units;
|
unit * u = f->units;
|
||||||
while (u!=NULL) {
|
while (u!=NULL) {
|
||||||
|
@ -301,6 +300,7 @@ score(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(scoreFP, "%d:%d:%d:%d", a->id, alliance_factions, alliance_number, alliance_score);
|
fprintf(scoreFP, "%d:%d:%d:%d", a->id, alliance_factions, alliance_number, alliance_score);
|
||||||
if (token!=NULL) fprintf(scoreFP, ":%d", grails);
|
if (token!=NULL) fprintf(scoreFP, ":%d", grails);
|
||||||
|
|
Loading…
Reference in New Issue