(sect_has_dock): New.

(fuel, load, nav_loadship): Use it.
This commit is contained in:
Ron Koenderink 2006-01-17 23:38:51 +00:00
parent 80be15204b
commit 14d94c2509
5 changed files with 16 additions and 8 deletions

View file

@ -388,6 +388,17 @@ shp_check_nav(struct sctstr *sect)
return CN_NAVIGABLE;
}
int
sect_has_dock(struct sctstr *sect)
{
switch (dchr[sect->sct_type].d_nav) {
case NAV_02:
return 1;
default:
return 0;
}
}
static int
shp_count(struct emp_qelem *list, int wantflags, int nowantflags, int x,
int y)