]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/unitsub.c
Clean up suspicious coordinate system use in unit_put()
[empserver] / src / lib / subs / unitsub.c
index a87e43822724c249c1bbf287a747fd1b4240482e..80cd98354b285bacfc6745fabee97cb4f9a3540c 100644 (file)
@@ -75,7 +75,7 @@ unit_list(struct emp_qelem *unit_list)
            continue;
        pr("%4d ", unit->uid);
        pr("%-16.16s ", empobj_chr_name(unit));
-       prxy("%4d,%-4d ", unit->x, unit->y, unit->own);
+       prxy("%4d,%-4d ", unit->x, unit->y);
        pr("%1.1s", &unit->group);
        pr("%4d%%", unit->effic);
        if (type == EF_LAND) {
@@ -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;