Open fabiangreffrath opened 2 hours ago
Apparently there was some back and forth in the SBARDEF PR:
https://github.com/fabiangreffrath/woof/pull/1916/commits/f6f14bca33a2b6f75f1fdbf2e00d95574a47d622
That affected the other font, apparently. Maybe we are just missing the STCFN096 lump that MBF had embedded in its info.c
.
Try to enter a savegame name containing a grave accent character. On my keyboard, this is the key to the left of the '1' key in the top-left corner. The crash happens, because there is no such glyph in Doom's HUD font.
First crash in
WriteText()
:Mitigated by the following patch:
The same crash happens in
MN_StringWidth()
again:This is, because missing glyph patches are simply stored as
NULL
pointers in the font arrays here:https://github.com/fabiangreffrath/woof/blob/e5d2d94c6fb896a0702ed0cdaed38939e7d0bc05/src/st_sbardef.c#L348-L360
This didn't happen in former releases, because missing patches were substituted from the other font, or filled up with the first available character, i.e. '!' here:
https://github.com/fabiangreffrath/woof/blob/1dcef227261f73224d95ea242a1f2db497628c75/src/hu_stuff.c#L440-L455