Clean up call of writemap() in ac_encounter()

Pass the more obviously correct plane_owner instead of player->cnum.
They're the same, actually.

When deities could still fly foreign planes (before commit 2023b47c),
they weren't.  ac_encounter() updated the plane owner's in-memory
bmap, but wrote the current player's bmap to disk.
This commit is contained in:
Markus Armbruster 2010-06-14 07:42:30 +02:00
parent c2cd58d561
commit 5161953996

View file

@ -226,7 +226,7 @@ ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
}
/* If the map changed, update it */
if (changed)
writemap(player->cnum);
writemap(plane_owner);
free_shiplist(&head);
for (cn = 1; cn < MAXNOC; cn++)