]> git.pond.sub.org Git - empserver/commitdiff
(unit_path): Replace mpr() with pr() as unit_path() is only called
authorRon Koenderink <rkoenderink@yahoo.ca>
Sat, 27 Jan 2007 02:31:08 +0000 (02:31 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sat, 27 Jan 2007 02:31:08 +0000 (02:31 +0000)
from navigate or march command.

src/lib/subs/unitsub.c

index b7c6a8fb0b87861f9d41db48128f30ff9ff14713..f3efe0d1a5d53272e0bf6b95fa73ffecb333d5d3 100644 (file)
@@ -139,25 +139,18 @@ unit_path(int together, struct empobj *unit, char *buf)
     if (!sarg_xy(buf, &destx, &desty))
        return 0;
     if (!together) {
-       if (unit->ef_type == EF_SHIP)
-           mpr(unit->own,
-               "Cannot go to a destination sector if not all starting in the same sector\n");
-       else
-           pr("Cannot go to a destination sector if not all starting in the same sector\n");
+       pr("Cannot go to a destination sector if not all starting in the same sector\n");
        return 0;
     }
     if (!getsect(destx, desty, &d_sect)) {
-       if (unit->ef_type == EF_SHIP)
-           mpr(unit->own, "%d,%d is not a sector\n", destx, desty);
-       else
-           pr("%d,%d is not a sector\n", destx, desty);
+       pr("%d,%d is not a sector\n", destx, desty);
        return 0;
     }
     if (unit->ef_type == EF_SHIP) {
        cp = BestShipPath(buf, unit->x, unit->y,
                          d_sect.sct_x, d_sect.sct_y, player->cnum);
        if (!cp || unit->mobil <= 0) {
-           mpr(unit->own, "Can't get to '%s' right now.\n",
+           pr("Can't get to '%s' right now.\n",
                xyas(d_sect.sct_x, d_sect.sct_y, player->cnum));
            return 0;
        }