(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:
parent
e121d1bdc0
commit
8da88626d5
2 changed files with 3 additions and 4 deletions
|
@ -162,6 +162,8 @@ finish_sects(int etu)
|
||||||
if (infptr->path)
|
if (infptr->path)
|
||||||
free(infptr->path);
|
free(infptr->path);
|
||||||
#endif /* SAVE_FINISH_PATHS */
|
#endif /* SAVE_FINISH_PATHS */
|
||||||
|
|
||||||
|
sp->sct_off = 0;
|
||||||
}
|
}
|
||||||
logerror("done importing\n");
|
logerror("done importing\n");
|
||||||
|
|
||||||
|
|
|
@ -314,11 +314,8 @@ produce_sect(int natnum, int etu, int *bp, long p_sect[][2])
|
||||||
bp_disable_cachepath();
|
bp_disable_cachepath();
|
||||||
bp_clear_cachepath();
|
bp_clear_cachepath();
|
||||||
|
|
||||||
if (sp->sct_off || np->nat_money < 0) {
|
if (sp->sct_off || np->nat_money < 0)
|
||||||
if (!player->simulation)
|
|
||||||
sp->sct_off = 0;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
neweff = sp->sct_effic;
|
neweff = sp->sct_effic;
|
||||||
amount = 0;
|
amount = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue