(update_running): New.
(update_run): Set it. Replace incorrect uses of update_pending by update_running, fixing buggy behavior while the update was trying to gain control: (sct_do_upd_mob, shp_do_upd_mob, lnd_do_upd_mob, pln_do_upd_mob): MOB_ACCESS mobility update was skipped. (telegram_is_new): Fix recognition of new telegrams by timestamp. (wu): Bulletins got misfiled as production reports. (shp_nav): Sail path got ignored. (setrel): Declaration of war failed silently with SLOW_WAR enabled. Messages got suppressed. (PR, mpr): Messages got misdirected to bulletins.
This commit is contained in:
parent
c1a0a42024
commit
e9cfbdc241
7 changed files with 33 additions and 14 deletions
|
@ -53,7 +53,7 @@ sct_do_upd_mob(struct sctstr *sp)
|
|||
{
|
||||
int etus;
|
||||
|
||||
if (do_upd_checking || update_pending)
|
||||
if (do_upd_checking || update_running)
|
||||
return;
|
||||
if (sp->sct_own == 0)
|
||||
return;
|
||||
|
@ -73,7 +73,7 @@ shp_do_upd_mob(struct shpstr *sp)
|
|||
{
|
||||
int etus;
|
||||
|
||||
if (do_upd_checking || update_pending)
|
||||
if (do_upd_checking || update_running)
|
||||
return;
|
||||
if (sp->shp_own == 0)
|
||||
return;
|
||||
|
@ -91,7 +91,7 @@ lnd_do_upd_mob(struct lndstr *lp)
|
|||
{
|
||||
int etus;
|
||||
|
||||
if (do_upd_checking || update_pending)
|
||||
if (do_upd_checking || update_running)
|
||||
return;
|
||||
if (lp->lnd_own == 0)
|
||||
return;
|
||||
|
@ -109,7 +109,7 @@ pln_do_upd_mob(struct plnstr *pp)
|
|||
{
|
||||
int etus;
|
||||
|
||||
if (do_upd_checking || update_pending)
|
||||
if (do_upd_checking || update_running)
|
||||
return;
|
||||
if (pp->pln_own == 0)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue