(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:
Markus Armbruster 2005-11-06 12:06:10 +00:00
parent 610b1cded4
commit bee3f4aa88

View file

@ -516,10 +516,8 @@ nullify_objects(void)
mchr[i].m_hcm = 0;
if (opt_NO_LCMS)
mchr[i].m_lcm = 0;
if (opt_NO_OIL) {
if (mchr[i].m_flags & M_OIL)
mchr[i].m_name = 0;
}
if (opt_NO_OIL)
mchr[i].m_flags &= ~M_OIL;
}
for (i = 0; i < nuk_maxno; i++) {
if (opt_NO_HCMS)