forked from github/server
kill faction.nregions, it is calculated but never read.
This commit is contained in:
parent
627f5ba2d1
commit
7b4550b9d6
|
@ -81,7 +81,6 @@ extern "C" {
|
|||
int options;
|
||||
struct ally *allies; /* alliedgroup and others should check sf.faction.alive before using a faction from f.allies */
|
||||
struct group *groups; /* alliedgroup and others should check sf.faction.alive before using a faction from f.groups */
|
||||
int nregions;
|
||||
score_t score;
|
||||
struct alliance *alliance;
|
||||
int alliance_joindate; /* the turn on which the faction joined its current alliance (or left the last one) */
|
||||
|
|
|
@ -393,7 +393,6 @@ summary *make_summary(void)
|
|||
plang->locale = lang;
|
||||
}
|
||||
++plang->number;
|
||||
f->nregions = 0;
|
||||
if (f->units) {
|
||||
s->factions++;
|
||||
/* Problem mit Monsterpartei ... */
|
||||
|
@ -432,11 +431,6 @@ summary *make_summary(void)
|
|||
s->peasants += rpeasants(r);
|
||||
s->peasantmoney += rmoney(r);
|
||||
|
||||
/* Einheiten Info. nregions darf nur einmal pro Partei
|
||||
* incrementiert werden. */
|
||||
|
||||
for (u = r->units; u; u = u->next)
|
||||
freset(u->faction, FFL_SELECT);
|
||||
for (u = r->units; u; u = u->next) {
|
||||
int orace;
|
||||
f = u->faction;
|
||||
|
@ -469,10 +463,6 @@ summary *make_summary(void)
|
|||
if (aktskill > s->maxskill)
|
||||
s->maxskill = aktskill;
|
||||
}
|
||||
if (!fval(f, FFL_SELECT)) {
|
||||
f->nregions++;
|
||||
fset(f, FFL_SELECT);
|
||||
}
|
||||
}
|
||||
|
||||
orace = (int)old_race(u_race(u));
|
||||
|
|
Loading…
Reference in New Issue