(show_nuke_capab, show_ship_capab, show_plane_capab, show_land_capab)

(prxy, border, ac_encounter, look, budg): Fix misuse of pr() and PR():
passed formatted string instead of format string and arguments.
Correctness depends on argument values and tables not containing '%',
which is correct, but fragile.
This commit is contained in:
Markus Armbruster 2006-03-26 13:41:46 +00:00
parent 65168f0d93
commit b0a5d11a3f
6 changed files with 18 additions and 20 deletions

View file

@ -53,11 +53,11 @@ border(struct range *rp, s_char *prefstr, s_char *sep)
/*
* hundreds
*/
pr(prefstr);
pr("%s", prefstr);
for (x = rp->lx, n = 0; n < rp->width; n++, x++) {
if (x >= WORLD_X / 2)
x -= WORLD_X;
pr(sep);
pr("%s", sep);
if (x < 0 && x > -100) {
pr("-");
} else {
@ -71,11 +71,11 @@ border(struct range *rp, s_char *prefstr, s_char *sep)
/*
* tens
*/
pr(prefstr);
pr("%s", prefstr);
for (x = rp->lx, n = 0; n < rp->width; n++, x++) {
if (x >= WORLD_X / 2)
x -= WORLD_X;
pr(sep);
pr("%s", sep);
if (x < 0 && x > -10) {
pr("-");
} else {
@ -87,7 +87,7 @@ border(struct range *rp, s_char *prefstr, s_char *sep)
/*
* units...
*/
pr(prefstr);
pr("%s", prefstr);
for (x = rp->lx, n = 0; n < rp->width; n++, x++) {
if (x >= WORLD_X / 2)
x -= WORLD_X;