forked from github/server
Man muss die neue Funktion natürlich aufrufen, sonst hilft's nicht
This commit is contained in:
parent
1f5432c875
commit
0486234db9
|
@ -2913,6 +2913,8 @@ reports(void)
|
|||
|
||||
report_donations();
|
||||
remove_empty_units();
|
||||
log_printf("Updating region intervals\n");
|
||||
update_intervals();
|
||||
log_printf("Report timestamp - %s\n", pzTime);
|
||||
for (f = factions; f; f = f->next) {
|
||||
faction_list * addresses;
|
||||
|
|
|
@ -1947,20 +1947,24 @@ update_intervals(void)
|
|||
for (u = r->units; u; u = u->next) {
|
||||
faction * f = u->faction;
|
||||
if (f->first==NULL) f->first = r;
|
||||
f->last = r->next;
|
||||
}
|
||||
|
||||
for (ru = a_find(r->attribs, &at_travelunit); ru; ru = ru->nexttype) {
|
||||
faction * f = ((unit*)ru->data.v)->faction;
|
||||
if (f->first==NULL) f->first = r;
|
||||
f->last = r->next;
|
||||
}
|
||||
|
||||
ulist = get_lighthouses(r);
|
||||
for (uptr=ulist;uptr!=NULL;uptr=uptr->next) {
|
||||
/* check lighthouse warden's faction */
|
||||
unit * u = uptr->data;
|
||||
if (u->faction->first==NULL) {
|
||||
u->faction->first = r;
|
||||
faction * f = u->faction;
|
||||
if (f->first==NULL) {
|
||||
f->first = r;
|
||||
}
|
||||
f->last = r->next;
|
||||
}
|
||||
unitlist_clear(&ulist);
|
||||
|
||||
|
@ -1969,6 +1973,7 @@ update_intervals(void)
|
|||
while (w) {
|
||||
faction * f = w->faction;
|
||||
if (f->first==NULL) f->first = r;
|
||||
f->last = r->next;
|
||||
w = w->next;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1053,8 +1053,10 @@ int change_hitpoints(struct unit *u, int value);
|
|||
int weight(const struct unit * u);
|
||||
void changeblockchaos(void);
|
||||
|
||||
struct region *firstregion(struct faction * f);
|
||||
struct region *lastregion(struct faction * f);
|
||||
/* intervall, in dem die regionen der partei zu finden sind */
|
||||
extern void update_intervals(void);
|
||||
extern struct region *firstregion(struct faction * f);
|
||||
extern struct region *lastregion(struct faction * f);
|
||||
|
||||
void inituhash(void);
|
||||
void uhash(struct unit * u);
|
||||
|
|
Loading…
Reference in New Issue