]> git.pond.sub.org Git - empserver/commitdiff
Clean up suspicious coordinate system use in unit_list()
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 24 May 2010 06:59:01 +0000 (08:59 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 21 Jun 2010 19:03:21 +0000 (21:03 +0200)
It showed unit coordinates in unit's coordinate system instead of the
player's.  Fortunately, they're the same, since even deities can't
navigate foreign ships or march foreign land units.

src/lib/subs/unitsub.c

index a87e43822724c249c1bbf287a747fd1b4240482e..88058172c5da1cac5930cafe7dbd07fe984a6762 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, player->cnum);
        pr("%1.1s", &unit->group);
        pr("%4d%%", unit->effic);
        if (type == EF_LAND) {