(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
|
@ -94,7 +94,7 @@ setrel(natid us, natid them, int rel)
|
|||
if (theirrel <= MOBILIZATION) {
|
||||
rel = theirrel;
|
||||
cost = 0;
|
||||
} else if (us == player->cnum && !update_pending) {
|
||||
} else if (us == player->cnum && !update_running) {
|
||||
if (mynp->nat_money < War_Cost) {
|
||||
mpr(us, "You don't have the money!\n");
|
||||
return RET_FAIL;
|
||||
|
@ -105,7 +105,7 @@ setrel(natid us, natid them, int rel)
|
|||
return RET_FAIL;
|
||||
}
|
||||
if (rel >= oldrel) {
|
||||
if (us == player->cnum && !update_pending)
|
||||
if (us == player->cnum && !update_running)
|
||||
mpr(us, "No change required for that!\n");
|
||||
return RET_FAIL;
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ setrel(natid us, natid them, int rel)
|
|||
n_down = N_DECL_WAR;
|
||||
}
|
||||
|
||||
if (addendum && us == player->cnum && !update_pending)
|
||||
if (addendum && us == player->cnum && !update_running)
|
||||
pr("%s\n", addendum);
|
||||
mpr(us, "Diplomatic relations with %s %s to \"%s\".\n",
|
||||
themname, whichway, relates[rel]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue