From: Markus Armbruster Date: Mon, 14 Jun 2010 05:42:30 +0000 (+0200) Subject: Clean up call of writemap() in ac_encounter() X-Git-Tag: v4.3.27~214 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=516195399677c89f273e4eccc95b020e3d5ca3f1 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. --- diff --git a/src/lib/subs/aircombat.c b/src/lib/subs/aircombat.c index 5942f4a87..5e298f60e 100644 --- a/src/lib/subs/aircombat.c +++ b/src/lib/subs/aircombat.c @@ -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++)