(produce_sect, finish_sects): Move stop order expiry to end of update,

so that stopped sectors don't repair units.  The update sequence
masked this bug until its change in src/lib/update/main.c rev. 1.25,
but use of budget priorities (gone since rev. 1.24) could unmask it.
This commit is contained in:
Markus Armbruster 2006-09-23 10:37:55 +00:00
parent e121d1bdc0
commit 8da88626d5
2 changed files with 3 additions and 4 deletions

View file

@ -314,11 +314,8 @@ produce_sect(int natnum, int etu, int *bp, long p_sect[][2])
bp_disable_cachepath();
bp_clear_cachepath();
if (sp->sct_off || np->nat_money < 0) {
if (!player->simulation)
sp->sct_off = 0;
if (sp->sct_off || np->nat_money < 0)
continue;
}
neweff = sp->sct_effic;
amount = 0;