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:
parent
c2cd58d561
commit
5161953996
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
|
||||||
}
|
}
|
||||||
/* If the map changed, update it */
|
/* If the map changed, update it */
|
||||||
if (changed)
|
if (changed)
|
||||||
writemap(player->cnum);
|
writemap(plane_owner);
|
||||||
|
|
||||||
free_shiplist(&head);
|
free_shiplist(&head);
|
||||||
for (cn = 1; cn < MAXNOC; cn++)
|
for (cn = 1; cn < MAXNOC; cn++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue