(io_output_all,update_main,update_wait): Do not block on writing when

aborting commands for an update.  Move update_pending to the start of
the update sequence where the commands are aborted.
This commit is contained in:
Ron Koenderink 2005-08-21 17:17:38 +00:00
parent ef0dbf6790
commit a7fa7dee30
3 changed files with 14 additions and 3 deletions

View file

@ -74,6 +74,9 @@ update_main(void *unused)
struct natstr *cnp;
struct natstr *np;
if (CANT_HAPPEN(!update_pending))
update_pending = 1;
/* First, make sure all mobility is updated correctly. */
if (opt_MOB_ACCESS) {
mob_ship(etu);
@ -81,7 +84,6 @@ update_main(void *unused)
mob_plane(etu);
mob_land(etu);
}
update_pending = 1;
player->proc = empth_self();
player->cnum = 0;
player->god = 1;