(check_nav, shp_check_nav, sail_nav_fleet, retreat_ship1):

Make shp_check_nav() public.
Remove check_nav(), replace with shp_check_nav().
No functional change as check_nav() and shp_check_nav() are
identical.
This commit is contained in:
Ron Koenderink 2006-01-17 13:11:24 +00:00
parent 8ef5b87d90
commit 1d58f58e1b
5 changed files with 5 additions and 28 deletions

View file

@ -54,28 +54,6 @@
#include "common.h"
#include "gen.h"
/* Format a ship name */
int
check_nav(struct sctstr *sect)
{
switch (dchr[sect->sct_type].d_flg & 03) {
case NAVOK:
break;
case NAV_02:
if (sect->sct_effic < 2)
return CN_CONSTRUCTION;
break;
case NAV_60:
if (sect->sct_effic < 60)
return CN_CONSTRUCTION;
break;
default:
return CN_LANDLOCKED;
}
return CN_NAVIGABLE;
}
/* load a specific ship given its
* location and what field to modify.
* new autonav code