From 1fa06bd45faf43618809354b1d57068735240dc8 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 20 Jun 2010 17:53:17 +0200 Subject: [PATCH] Clean up suspicious coordinate system use in unit_put() It showed unit coordinates in unit's coordinate system instead of the actor's. Fortunately, they're the same, since it is reachable only for non-zero actor, only shp_nav_one_sector(), lnd_mar_one_sector() and sail_nav_fleet() pass that, and even deities can't navigate foreign ships or march foreign land units. --- src/lib/subs/unitsub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/subs/unitsub.c b/src/lib/subs/unitsub.c index 17750b533..80cd98354 100644 --- a/src/lib/subs/unitsub.c +++ b/src/lib/subs/unitsub.c @@ -116,7 +116,7 @@ unit_put(struct emp_qelem *list, natid actor) continue; if (actor) { mpr(actor, "%s stopped at %s\n", obj_nameof(unit), - xyas(unit->x, unit->y, unit->own)); + xyas(unit->x, unit->y, actor)); if (unit->ef_type == EF_LAND) { if (ulp->mobil < -127) ulp->mobil = -127; -- 2.43.0