update: Fix unowned uw to eat, procreate and produce
produce_sect() skips sectors without civilians, military and land units. These are unowned. Any uw there are frozen in time: they don't eat, procreate or produce. Has always been broken. Don't skip such sectors. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
55dcbaa8da
commit
6c4874e4d2
3 changed files with 18 additions and 24 deletions
|
@ -253,6 +253,7 @@ produce_sect(struct natstr *np, int etu, struct bp *bp, int p_sect[][2])
|
|||
continue;
|
||||
if (sp->sct_updated != 0)
|
||||
continue;
|
||||
sp->sct_updated = 1;
|
||||
|
||||
/*
|
||||
* When running the test suite, reseed PRNG for each sector
|
||||
|
@ -268,13 +269,6 @@ produce_sect(struct natstr *np, int etu, struct bp *bp, int p_sect[][2])
|
|||
sp = &scratch_sect;
|
||||
}
|
||||
|
||||
if (sp->sct_item[I_CIVIL] == 0 && sp->sct_item[I_MILIT] == 0 &&
|
||||
!has_units(sp->sct_x, sp->sct_y, sp->sct_own)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
sp->sct_updated = 1;
|
||||
|
||||
work = do_feed(sp, np, etu, 0);
|
||||
bp_put_items(bp, sp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue