(ac_encounter): Called writemap() only for active sorties, and not

when update_pending.  This makes no sense.  The map is updated in
memory and not calling writemap() only delays the write back to disk.
Remove the conditional.
This commit is contained in:
Markus Armbruster 2007-01-17 19:52:12 +00:00
parent c5719fb3be
commit ebb731a562

View file

@ -269,8 +269,7 @@ ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
}
/* If the map changed, update it */
if (changed)
if (!update_pending && plane_owner == player->cnum)
writemap(player->cnum);
writemap(player->cnum);
/* Now, if the bomber and escort lists are empty, we are done */
if (QEMPTY(bomb_list) && QEMPTY(esc_list)) {
if (mission_flags & P_A)