(fuel, load, shp_check_nav, retreat_ship1, shp_nav_one_sector)
(shp_check_nav, sail_nav_fleet, bigcity_dchr[], sector_navigation[]) (d_navigation): Add a NEW d_navigation enum NAV_CANAL to indicate that a sector has canal capability. Add canal determination logic to shp_check_nav(). Update sector_navigation[] with new canal navigation enum. Use shp_check_nav() to determine the sector can be navigated.
This commit is contained in:
parent
82df8cfe0c
commit
74e4e2810a
9 changed files with 44 additions and 45 deletions
|
@ -787,6 +787,7 @@ struct symbol sector_navigation[] = { /* for d_nav */
|
|||
{NAV_NONE, "land"},
|
||||
{NAVOK, "sea"},
|
||||
{NAV_02, "harbor"},
|
||||
{NAV_CANAL, "canal"},
|
||||
{NAV_60, "bridge"},
|
||||
{0, NULL}
|
||||
};
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
#include "product.h"
|
||||
|
||||
struct dchrstr bigcity_dchr = {
|
||||
SCT_CAPIT, 'c', 0, 2, NAV_02, UPKG, 1.0, 2.0, 30, 0, 10, 1, 2, 999, "city"
|
||||
SCT_CAPIT, 'c', 0, 2, NAV_CANAL, UPKG, 1.0, 2.0, 30, 0, 10, 1, 2, 999, "city"
|
||||
};
|
||||
|
||||
struct dchrstr dchr[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue