Fix sweep command to use correct coordinate system
When reporting sweeps, it reported the location in the plane owner's coordinate system instead of the player's. Fortunately, they're the same in normal usage. They can differ only when a deity flies foreign planes.
This commit is contained in:
parent
b1a36aebf7
commit
4773519c3c
1 changed files with 1 additions and 1 deletions
|
@ -943,7 +943,7 @@ plane_sweep(struct emp_qelem *plane_list, coord x, coord y)
|
|||
|
||||
if (chance((100.0 - pln_acc(pp)) / 100.0)) {
|
||||
pr("Sweep! in %s\n",
|
||||
xyas(sect.sct_x, sect.sct_y, pp->pln_own));
|
||||
xyas(sect.sct_x, sect.sct_y, player->cnum));
|
||||
mines_there--;
|
||||
found = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue