(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

@ -427,12 +427,10 @@ prdate(void)
void
prxy(char *format, coord x, coord y, natid country)
{
char buf[255];
struct natstr *np;
np = getnatp(country);
sprintf(buf, format, xrel(np, x), yrel(np, y));
pr(buf);
pr(format, xrel(np, x), yrel(np, y));
}
/*