]> git.pond.sub.org Git - empserver/commitdiff
(ac_encounter): Called writemap() only for active sorties, and not
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 17 Jan 2007 19:52:12 +0000 (19:52 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 17 Jan 2007 19:52:12 +0000 (19:52 +0000)
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.

src/lib/subs/aircombat.c

index b513e5cad1c2721016f62516feaac22196674749..f8046b911edd97395fee14b730ea1adaa478a7aa 100644 (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)