(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:
parent
65168f0d93
commit
b0a5d11a3f
6 changed files with 18 additions and 20 deletions
|
@ -204,7 +204,7 @@ show_nuke_capab(int tlev)
|
|||
if (NULL != (p = symbol_by_value(bit(i), nuke_chr_flags))) {
|
||||
if (j++ > 0)
|
||||
pr(" ");
|
||||
pr(p);
|
||||
pr("%s", p);
|
||||
}
|
||||
}
|
||||
pr("\n");
|
||||
|
@ -318,7 +318,7 @@ show_ship_capab(int tlev)
|
|||
if (NULL != (p = symbol_by_value(bit(j), ship_chr_flags))) {
|
||||
if (n++ > 0)
|
||||
pr(" ");
|
||||
pr(p);
|
||||
pr("%s", p);
|
||||
}
|
||||
}
|
||||
pr("\n");
|
||||
|
@ -369,7 +369,7 @@ show_plane_capab(int tlev)
|
|||
if (NULL != (p = symbol_by_value(bit(i), plane_chr_flags))) {
|
||||
if (n++ > 0)
|
||||
pr(" ");
|
||||
pr(p);
|
||||
pr("%s", p);
|
||||
}
|
||||
}
|
||||
pr("\n");
|
||||
|
@ -442,7 +442,7 @@ show_land_capab(int tlev)
|
|||
if (NULL != (p = symbol_by_value(bit(j), land_chr_flags))) {
|
||||
if (n++ > 0)
|
||||
pr(" ");
|
||||
pr(p);
|
||||
pr("%s", p);
|
||||
}
|
||||
}
|
||||
pr("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue