From fe8be242d0dcb61f7aebd3c506cbc332deff5a08 Mon Sep 17 00:00:00 2001 From: SteelT Date: Mon, 26 Sep 2022 02:31:50 -0400 Subject: [PATCH] readhuditem parse fixes Fix readhuditem not parsing flags correctly Fix unknown word warning erroneously describing the HUD item as a level header --- src/deh_soc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deh_soc.c b/src/deh_soc.c index 9e3c2f242..aed0ca3b4 100644 --- a/src/deh_soc.c +++ b/src/deh_soc.c @@ -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