(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:
Ron Koenderink 2007-01-23 01:41:37 +00:00
parent 99e30073f2
commit 038cc74d4e
7 changed files with 98 additions and 69 deletions

View file

@ -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)