(unit_view): New, create by expanding shp_view() to work for
land_unit as well. (do_unit_move): Add view option for land units using unit_view(). Combine ship and land viewing using the unit_view(). (shp_view): Remove, not used any more, replaced by unit_view().
This commit is contained in:
parent
aee2bc78e2
commit
7434da679e
5 changed files with 28 additions and 29 deletions
|
@ -255,13 +255,10 @@ do_unit_move(struct emp_qelem *ulist, int *together,
|
|||
player->btused++;
|
||||
continue;
|
||||
case 'v':
|
||||
if (leader->ef_type != EF_SHIP)
|
||||
break;
|
||||
shp_view(ulist);
|
||||
unit_view(ulist);
|
||||
continue;
|
||||
}
|
||||
direrr("`%c' to stop",
|
||||
type == EF_SHIP ? ", `%c' to view" : NULL, NULL);
|
||||
direrr("`%c' to stop", ", `%c' to view", NULL);
|
||||
pr(", `i' to list %s, `f' to change %s,\n",
|
||||
type == EF_SHIP ? "ships" : "units",
|
||||
type == EF_SHIP ? "flagship" : "leader");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue