Rebase of Hvy Metal I final version
Straightforward forward port. Drop the code to reset track on startup. It's not necessary, and it breaks linking of empdump.
This commit is contained in:
parent
abd64835c7
commit
5d0f5e69ee
25 changed files with 349 additions and 25 deletions
|
@ -76,6 +76,7 @@ struct sctstr {
|
|||
natid sct_oldown; /* old owner of sector (for liberation) */
|
||||
unsigned char sct_updated; /* Has this sect been updated? */
|
||||
unsigned char sct_off; /* Should this sector produce? */
|
||||
unsigned char sct_track; /* nearby railways (RAILWAYS) */
|
||||
short sct_item[I_MAX+1]; /* amount of items stored here */
|
||||
short sct_del[I_MAX+1]; /* delivieries */
|
||||
short sct_dist[I_MAX+1]; /* distribution thresholds */
|
||||
|
@ -181,6 +182,11 @@ extern struct dchrstr bigcity_dchr;
|
|||
|
||||
#define FORTEFF 5 /* forts must be 5% efficient to fire. */
|
||||
|
||||
/* Can trains enter sector SP? */
|
||||
#define SCT_HAS_RAIL(sp) \
|
||||
(opt_RAILWAYS ? (sp)->sct_track != 0 \
|
||||
: intrchr[INT_RAIL].in_enable && (sp)->sct_rail != 0)
|
||||
|
||||
#define MOB_MOVE 0
|
||||
#define MOB_MARCH 1
|
||||
#define MOB_RAIL 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue