forked from github/server
"Neu entstandene Untote werden nur im CR angezeigt" - reordering units before writing reports, not earlier
This commit is contained in:
parent
d2c88d6660
commit
a215f35f9f
3 changed files with 5 additions and 7 deletions
|
@ -3924,7 +3924,6 @@ void
|
|||
processorders (void)
|
||||
{
|
||||
static int init = 0;
|
||||
region *r;
|
||||
const char * str;
|
||||
|
||||
if (!init) {
|
||||
|
@ -3947,12 +3946,6 @@ processorders (void)
|
|||
* Beschreibungen geändert haben */
|
||||
update_spells();
|
||||
warn_password();
|
||||
|
||||
/* we reorder the owners to be at the top of the building
|
||||
* and also everyone in the same building/ship in sequence */
|
||||
for (r = regions;r;r=r->next) {
|
||||
reorder_units(r);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -2236,6 +2236,7 @@ report_plaintext(const char * filename, report_context * ctx, const char * chars
|
|||
nr_unit(F, f, u, 4, sr->mode);
|
||||
}
|
||||
}
|
||||
assert(!u->building);
|
||||
u = u->next;
|
||||
}
|
||||
while (sh) {
|
||||
|
@ -2253,6 +2254,8 @@ report_plaintext(const char * filename, report_context * ctx, const char * chars
|
|||
}
|
||||
}
|
||||
|
||||
assert(!u);
|
||||
|
||||
rnl(F);
|
||||
rpline(F);
|
||||
}
|
||||
|
|
|
@ -1275,6 +1275,8 @@ prepare_reports(void)
|
|||
unit * u;
|
||||
plane * p = r->planep;
|
||||
|
||||
reorder_units(r);
|
||||
|
||||
if (p) {
|
||||
watcher * w = p->watchers;
|
||||
for (;w;w=w->next) {
|
||||
|
|
Loading…
Reference in a new issue