(nullify_objects): Fix option NO_OIL. The attempt to remove ships
with capability M_OIL from mchr[] actually replaced them with sentinels. Just clear the capability instead.
This commit is contained in:
parent
610b1cded4
commit
bee3f4aa88
1 changed files with 2 additions and 4 deletions
|
@ -516,10 +516,8 @@ nullify_objects(void)
|
||||||
mchr[i].m_hcm = 0;
|
mchr[i].m_hcm = 0;
|
||||||
if (opt_NO_LCMS)
|
if (opt_NO_LCMS)
|
||||||
mchr[i].m_lcm = 0;
|
mchr[i].m_lcm = 0;
|
||||||
if (opt_NO_OIL) {
|
if (opt_NO_OIL)
|
||||||
if (mchr[i].m_flags & M_OIL)
|
mchr[i].m_flags &= ~M_OIL;
|
||||||
mchr[i].m_name = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
for (i = 0; i < nuk_maxno; i++) {
|
for (i = 0; i < nuk_maxno; i++) {
|
||||||
if (opt_NO_HCMS)
|
if (opt_NO_HCMS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue