When formatting coordinates for fixed-width output, the width should
be at least four characters.
Columns x,y and op-sect use three. Has always been that way. Widen
them both to four. This cleans up output for world sizes between 200
and 1998.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
- pr("Thing x,y op-sect rad mission\n");
+ pr("Thing x,y op-sect rad mission\n");
first = 0;
}
pr("%-25s", unit_nameof(gp));
first = 0;
}
pr("%-25s", unit_nameof(gp));
- prxy(" %3d,%-3d", gp->x, gp->y);
+ prxy(" %4d,%-4d", gp->x, gp->y);
switch (gp->mission) {
case MI_INTERDICT:
case MI_SUPPORT:
switch (gp->mission) {
case MI_INTERDICT:
case MI_SUPPORT:
case MI_AIR_DEFENSE:
case MI_DSUPPORT:
case MI_OSUPPORT:
case MI_AIR_DEFENSE:
case MI_DSUPPORT:
case MI_OSUPPORT:
- prxy(" %3d,%-3d", gp->opx, gp->opy);
- pr(" %4d", gp->radius);
+ prxy(" %4d,%-4d", gp->opx, gp->opy);
+ pr(" %3d", gp->radius);
break;
default:
CANT_REACH();
break;
default:
CANT_REACH();