From 516195399677c89f273e4eccc95b020e3d5ca3f1 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 14 Jun 2010 07:42:30 +0200 Subject: [PATCH] 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. --- src/lib/subs/aircombat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/subs/aircombat.c b/src/lib/subs/aircombat.c index 5942f4a8..5e298f60 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++)