Consistently consider a nation bankrupt when its treasury is
negative. Some places considered $0 as bankrupt, some didn't. Fix the ones that did: (repo_list): report command misreported countries with $0 as broke. (init_nats): If you had $0, logging out and back in bankrupted you. (produce_sect, upd_ship): Failed to build sectors and produce stuff for countries with $0.
This commit is contained in:
parent
a71ec1459d
commit
09a842c1a0
4 changed files with 6 additions and 6 deletions
|
@ -327,7 +327,7 @@ produce_sect(int natnum, int etu, struct bp *bp, long p_sect[][2])
|
|||
desig = sp->sct_type;
|
||||
|
||||
if ((sp->sct_effic < 100 || sp->sct_type != sp->sct_newtype) &&
|
||||
np->nat_money > 0) {
|
||||
np->nat_money >= 0) {
|
||||
neweff = upd_buildeff(np, sp, &work, vec, etu, &desig, sctwork,
|
||||
&cost);
|
||||
bp_put_items(bp, sp, vec);
|
||||
|
@ -354,7 +354,7 @@ produce_sect(int natnum, int etu, struct bp *bp, long p_sect[][2])
|
|||
*/
|
||||
|
||||
if (neweff >= 60) {
|
||||
if (np->nat_money > 0 && dchr[desig].d_prd >= 0)
|
||||
if (np->nat_money >= 0 && dchr[desig].d_prd >= 0)
|
||||
work -= produce(np, sp, vec, work, desig, neweff,
|
||||
&pcost, &amount);
|
||||
bp_put_items(bp, sp, vec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue