(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:
Markus Armbruster 2004-03-04 15:54:46 +00:00
parent 7cd66c0f70
commit 828b84d840
5 changed files with 14 additions and 9 deletions

View file

@ -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 {