Remove useless width from printf conversion %c.
This commit is contained in:
parent
9eba732cc3
commit
0fe877e1cd
5 changed files with 7 additions and 7 deletions
|
@ -63,7 +63,7 @@ carg(void)
|
||||||
pr("%4d ", ni.cur);
|
pr("%4d ", ni.cur);
|
||||||
pr("%-16.16s ", mchr[(int)ship.shp_type].m_name);
|
pr("%-16.16s ", mchr[(int)ship.shp_type].m_name);
|
||||||
prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
|
prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
|
||||||
pr(" %1c", ship.shp_fleet);
|
pr(" %c", ship.shp_fleet);
|
||||||
pr("%4d%%", ship.shp_effic);
|
pr("%4d%%", ship.shp_effic);
|
||||||
pr("%4d", ship.shp_item[I_SHELL]);
|
pr("%4d", ship.shp_item[I_SHELL]);
|
||||||
pr("%4d", ship.shp_item[I_GUN]);
|
pr("%4d", ship.shp_item[I_GUN]);
|
||||||
|
@ -109,7 +109,7 @@ lcarg(void)
|
||||||
pr("%4d ", ni.cur);
|
pr("%4d ", ni.cur);
|
||||||
pr("%-16.16s ", lchr[(int)land.lnd_type].l_name);
|
pr("%-16.16s ", lchr[(int)land.lnd_type].l_name);
|
||||||
prxy("%4d,%-4d ", land.lnd_x, land.lnd_y, player->cnum);
|
prxy("%4d,%-4d ", land.lnd_x, land.lnd_y, player->cnum);
|
||||||
pr(" %1c", land.lnd_army);
|
pr(" %c", land.lnd_army);
|
||||||
pr("%4d%%", land.lnd_effic);
|
pr("%4d%%", land.lnd_effic);
|
||||||
pr("%4d", land.lnd_item[I_SHELL]);
|
pr("%4d", land.lnd_item[I_SHELL]);
|
||||||
pr("%4d", land.lnd_item[I_GUN]);
|
pr("%4d", land.lnd_item[I_GUN]);
|
||||||
|
|
|
@ -159,7 +159,7 @@ retr(void)
|
||||||
pr("%4d ", ni.cur);
|
pr("%4d ", ni.cur);
|
||||||
pr("%-16.16s ", mchr[(int)ship.shp_type].m_name);
|
pr("%-16.16s ", mchr[(int)ship.shp_type].m_name);
|
||||||
prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
|
prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
|
||||||
pr("%1c", ship.shp_fleet);
|
pr("%c", ship.shp_fleet);
|
||||||
pr(" %-11s", ship.shp_rpath);
|
pr(" %-11s", ship.shp_rpath);
|
||||||
if (ship.shp_rflags & RET_GROUP)
|
if (ship.shp_rflags & RET_GROUP)
|
||||||
pr("Yes ");
|
pr("Yes ");
|
||||||
|
@ -287,7 +287,7 @@ lretr(void)
|
||||||
pr("%4d ", ni.cur);
|
pr("%4d ", ni.cur);
|
||||||
pr("%-16.16s ", lchr[(int)land.lnd_type].l_name);
|
pr("%-16.16s ", lchr[(int)land.lnd_type].l_name);
|
||||||
prxy("%4d,%-4d ", land.lnd_x, land.lnd_y, player->cnum);
|
prxy("%4d,%-4d ", land.lnd_x, land.lnd_y, player->cnum);
|
||||||
pr("%1c", land.lnd_army);
|
pr("%c", land.lnd_army);
|
||||||
pr(" %-11s", land.lnd_rpath);
|
pr(" %-11s", land.lnd_rpath);
|
||||||
if (land.lnd_rflags & RET_GROUP)
|
if (land.lnd_rflags & RET_GROUP)
|
||||||
pr("Yes ");
|
pr("Yes ");
|
||||||
|
|
|
@ -76,7 +76,7 @@ shi(void)
|
||||||
pr("%4d ", ni.cur);
|
pr("%4d ", ni.cur);
|
||||||
pr("%-16.16s ", mchr[(int)ship.shp_type].m_name);
|
pr("%-16.16s ", mchr[(int)ship.shp_type].m_name);
|
||||||
prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
|
prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
|
||||||
pr("%1c", ship.shp_fleet);
|
pr("%c", ship.shp_fleet);
|
||||||
pr("%4d%%", ship.shp_effic);
|
pr("%4d%%", ship.shp_effic);
|
||||||
|
|
||||||
pr("%4d", ship.shp_item[I_CIVIL]);
|
pr("%4d", ship.shp_item[I_CIVIL]);
|
||||||
|
|
|
@ -791,7 +791,7 @@ lnd_list(struct emp_qelem *land_list)
|
||||||
pr("%4d ", lnd->lnd_uid);
|
pr("%4d ", lnd->lnd_uid);
|
||||||
pr("%-16.16s ", llp->lcp->l_name);
|
pr("%-16.16s ", llp->lcp->l_name);
|
||||||
prxy("%4d,%-4d ", lnd->lnd_x, lnd->lnd_y, llp->land.lnd_own);
|
prxy("%4d,%-4d ", lnd->lnd_x, lnd->lnd_y, llp->land.lnd_own);
|
||||||
pr("%1c", lnd->lnd_army);
|
pr("%c", lnd->lnd_army);
|
||||||
pr("%4d%%", lnd->lnd_effic);
|
pr("%4d%%", lnd->lnd_effic);
|
||||||
pr("%4d", lnd->lnd_item[I_SHELL]);
|
pr("%4d", lnd->lnd_item[I_SHELL]);
|
||||||
pr("%4d", lnd->lnd_item[I_GUN]);
|
pr("%4d", lnd->lnd_item[I_GUN]);
|
||||||
|
|
|
@ -340,7 +340,7 @@ shp_list(struct emp_qelem *ship_list)
|
||||||
pr("%4d ", shp->shp_uid);
|
pr("%4d ", shp->shp_uid);
|
||||||
pr("%-16.16s ", mlp->mcp->m_name);
|
pr("%-16.16s ", mlp->mcp->m_name);
|
||||||
prxy("%4d,%-4d ", shp->shp_x, shp->shp_y, mlp->ship.shp_own);
|
prxy("%4d,%-4d ", shp->shp_x, shp->shp_y, mlp->ship.shp_own);
|
||||||
pr("%1c", shp->shp_fleet);
|
pr("%c", shp->shp_fleet);
|
||||||
pr("%4d%%", shp->shp_effic);
|
pr("%4d%%", shp->shp_effic);
|
||||||
pr("%4d", shp->shp_item[I_MILIT]);
|
pr("%4d", shp->shp_item[I_MILIT]);
|
||||||
pr("%4d", shp->shp_item[I_SHELL]);
|
pr("%4d", shp->shp_item[I_SHELL]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue