(shp_maxno): Variable's value is well-known constant N_MAXSHIPS + 1.
Useless, remove. Users changed to check mchr's sentinel, because that's clearer than comparing the index to N_MAXSHIPS or sizeof(mchr) / sizeof(*mchr). (mchr): Change sentinel's m_name to NULL.
This commit is contained in:
parent
47192c9079
commit
e23d8a8fac
5 changed files with 4 additions and 15 deletions
|
@ -186,7 +186,6 @@ struct mchrstr {
|
|||
(struct shpstr *) ef_ptr(EF_SHIP, n)
|
||||
|
||||
extern struct mchrstr mchr[N_MAXSHIPS + 1];
|
||||
extern int shp_maxno;
|
||||
|
||||
struct mlist {
|
||||
struct emp_qelem queue; /* list of ships */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue