readhuditem parse fixes

Fix readhuditem not parsing flags correctly
Fix unknown word warning erroneously describing the HUD item as a level header
This commit is contained in:
SteelT 2022-09-26 02:31:50 -04:00
parent c65851d17c
commit fe8be242d0

View file

@ -2687,10 +2687,10 @@ void readhuditem(MYFILE *f, INT32 num)
}
else if (fastcmp(word, "F"))
{
hudinfo[num].f = i;
hudinfo[num].f = get_number(word2);
}
else
deh_warning("Level header %d: unknown word '%s'", num, word);
deh_warning("HUD item %d: unknown word '%s'", num, word);
}
} while (!myfeof(f)); // finish when the line is empty