(SHIPNAMES, opt_SHIPNAMES, Options, carg, name, sorde, qorde)
(show_sail, shi, att_get_combat, pr_com, satdisp, satmap, prship): Remove nooption SHIPNAMES.
This commit is contained in:
parent
df8845199e
commit
786b34c693
12 changed files with 27 additions and 71 deletions
|
@ -133,16 +133,10 @@ pr_com(int inon, struct combat *com, natid who)
|
|||
inon ? inon == 1 ? "in " : "into " : "",
|
||||
xyas(com->x, com->y, who));
|
||||
} else if (com->type == EF_SHIP) {
|
||||
if (opt_SHIPNAMES) {
|
||||
return prbuf("%s%s %s(#%d)",
|
||||
inon ? inon == 1 ? "on " : "onto " : "",
|
||||
com->shp_mcp->m_name, com->shp_name,
|
||||
com->shp_uid);
|
||||
} else {
|
||||
return prbuf("%s%s #%d",
|
||||
inon ? inon == 1 ? "on " : "onto " : "",
|
||||
com->shp_mcp->m_name, com->shp_uid);
|
||||
}
|
||||
return prbuf("%s%s %s(#%d)",
|
||||
inon ? inon == 1 ? "on " : "onto " : "",
|
||||
com->shp_mcp->m_name, com->shp_name,
|
||||
com->shp_uid);
|
||||
} else if (com->type == EF_LAND) {
|
||||
return prbuf("%s%s #%d",
|
||||
inon ? inon == 1 ? "on " : "onto " : "",
|
||||
|
@ -266,8 +260,7 @@ att_get_combat(struct combat *com, int isdef)
|
|||
return att_combat_init(com, EF_BAD);
|
||||
}
|
||||
com->shp_mcp = &mchr[(int)ship.shp_type];
|
||||
if (opt_SHIPNAMES)
|
||||
strncpy(com->shp_name, ship.shp_name, MAXSHPNAMLEN);
|
||||
strncpy(com->shp_name, ship.shp_name, MAXSHPNAMLEN);
|
||||
if (!isdef && !player->owner) {
|
||||
if (com->set)
|
||||
pr("%s was just sunk!\n", prcom(0, com));
|
||||
|
|
|
@ -152,11 +152,7 @@ satmap(int x, int y, int eff, int range, int flags, int type)
|
|||
if (flags & P_S) {
|
||||
pr("Satellite ship report\n");
|
||||
prdate();
|
||||
if (opt_SHIPNAMES) {
|
||||
pr(" own shp# ship type sector eff\n");
|
||||
} else {
|
||||
pr(" own shp# ship type sector eff\n");
|
||||
}
|
||||
pr(" own shp# ship type sector eff\n");
|
||||
}
|
||||
while (nxtitem(&ni, &ship)) {
|
||||
if (ship.shp_own == 0)
|
||||
|
@ -169,11 +165,9 @@ satmap(int x, int y, int eff, int range, int flags, int type)
|
|||
if (noise[crackle])
|
||||
continue;
|
||||
if (flags & P_S) {
|
||||
pr("%4d %4d %-16.16s ",
|
||||
pr("%4d %4d %-16.16s %-25.25s ",
|
||||
ship.shp_own, ship.shp_uid,
|
||||
mchr[(int)ship.shp_type].m_name);
|
||||
if (opt_SHIPNAMES)
|
||||
pr("%-25.25s ", ship.shp_name);
|
||||
mchr[(int)ship.shp_type].m_name, ship.shp_name);
|
||||
prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
|
||||
pr("%3d%%\n", ship.shp_effic);
|
||||
++count;
|
||||
|
@ -313,17 +307,12 @@ satdisp(struct sctstr *sp, int acc, int showstuff)
|
|||
if (mchr[(int)ship.shp_type].m_flags & M_SUB)
|
||||
continue;
|
||||
if (first) {
|
||||
if (opt_SHIPNAMES) {
|
||||
pr("\t own shp# ship type sector eff\n");
|
||||
} else {
|
||||
pr("\t own shp# ship type sector eff\n");
|
||||
}
|
||||
pr("\t own shp# ship type sector eff\n");
|
||||
first = 0;
|
||||
}
|
||||
pr("\t%4d %4d %-16.16s ", ship.shp_own, ship.shp_uid,
|
||||
mchr[(int)ship.shp_type].m_name);
|
||||
if (opt_SHIPNAMES)
|
||||
pr("%-25.25s ", ship.shp_name);
|
||||
pr("\t%4d %4d %-16.16s %-25.25s ",
|
||||
ship.shp_own, ship.shp_uid,
|
||||
mchr[(int)ship.shp_type].m_name, ship.shp_name);
|
||||
prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
|
||||
pr("%3d%%\n", ship.shp_effic);
|
||||
}
|
||||
|
|
|
@ -126,12 +126,7 @@ shp_init(int n, s_char *ptr)
|
|||
s_char *
|
||||
prship(struct shpstr *sp)
|
||||
{
|
||||
if (opt_SHIPNAMES) {
|
||||
return prbuf("%s %s(#%d)",
|
||||
mchr[(int)sp->shp_type].m_name, sp->shp_name,
|
||||
sp->shp_uid);
|
||||
} else {
|
||||
return prbuf("%s #%d", mchr[(int)sp->shp_type].m_name,
|
||||
sp->shp_uid);
|
||||
}
|
||||
return prbuf("%s %s(#%d)",
|
||||
mchr[(int)sp->shp_type].m_name, sp->shp_name,
|
||||
sp->shp_uid);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue