(lnd_maxno): Variable's value is well-known constant N_MAXLAND + 1.
Useless, remove. Users changed to check lchr's sentinel, because that's clearer than comparing the index to N_MAXLAND or sizeof(lchr) / sizeof(*lchr). (lchr): Change sentinel's l_name to NULL.
This commit is contained in:
parent
190cbaadf2
commit
04c247f2da
4 changed files with 3 additions and 8 deletions
|
@ -503,7 +503,7 @@ nullify_objects(void)
|
|||
if (opt_NO_OIL)
|
||||
plchr[i].pl_fuel = 0;
|
||||
}
|
||||
for (i = 0; i < lnd_maxno; i++) {
|
||||
for (i = 0; i < lchr[i].l_name; i++) {
|
||||
if (opt_NO_HCMS)
|
||||
lchr[i].l_hcm = 0;
|
||||
if (opt_NO_LCMS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue