(unit_list): New, create by combining shp_list() and lnd_list().
(do_unit_move): Replace call to shp_list() and lnd_list() with unit_list(). (shp_list, lnd_list): Remove, not needed, replaced by unit_list().
This commit is contained in:
parent
99e30073f2
commit
038cc74d4e
7 changed files with 98 additions and 69 deletions
|
@ -227,10 +227,7 @@ do_unit_move(struct emp_qelem *ulist, int *together,
|
|||
}
|
||||
continue;
|
||||
case 'i':
|
||||
if (type == EF_SHIP)
|
||||
shp_list(ulist);
|
||||
else
|
||||
lnd_list(ulist);
|
||||
unit_list(ulist);
|
||||
continue;
|
||||
case 'm':
|
||||
if (type == EF_SHIP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue