(MINES_MAX): New.
(doland, mine, landmine, setsector, pln_dropoff): Use it. With variables, mining beyond the capacity of variables (65535) was ignored. Now the mines saturate at MINES_MAX.
This commit is contained in:
parent
7cd66c0f70
commit
828b84d840
5 changed files with 14 additions and 9 deletions
|
@ -184,8 +184,10 @@ extern struct dchrstr bigcity_dchr;
|
|||
/* Sector flags */
|
||||
#define MOVE_IN_PROGRESS bit(0) /* move in progress */
|
||||
|
||||
/* maximal number of che, must fit into struct sctstr member sct_che */
|
||||
#define CHE_MAX 255
|
||||
/* maximum number of che, must fit into struct sctstr member sct_che */
|
||||
#define CHE_MAX 255
|
||||
/* maximum number of mines, must fit into struct sctstr member sct_mines */
|
||||
#define MINES_MAX 65535
|
||||
|
||||
/* Each cost is per point of efficency */
|
||||
struct sctintrins {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue