(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
|
@ -472,7 +472,7 @@ PR(int cn, char *format, ...)
|
|||
newline = strrchr(buf, '\n') ? 1 : 0;
|
||||
strcat(longline[cn], buf);
|
||||
if (newline) {
|
||||
if (update_pending || (cn && cn != player->cnum))
|
||||
if (update_running || (cn && cn != player->cnum))
|
||||
typed_wu(0, cn, longline[cn], TEL_BULLETIN);
|
||||
else
|
||||
pr_player(player, C_DATA, longline[cn]);
|
||||
|
@ -524,7 +524,7 @@ mpr(int cn, char *format, ...)
|
|||
(void)vsprintf(buf, format, ap);
|
||||
va_end(ap);
|
||||
if (cn) {
|
||||
if (update_pending || cn != player->cnum)
|
||||
if (update_running || cn != player->cnum)
|
||||
typed_wu(0, cn, buf, TEL_BULLETIN);
|
||||
else
|
||||
pr_player(player, C_DATA, buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue