http://bugs.winehq.org/show_bug.cgi?id=7698
------- Additional Comments From philcostin@hotmail.com 2007-26-04 16:37 ------- HL2 Deathmatch crashes when you get hit by a physics object because the "toilet-hitting-head" font is too big for the glyph memory. Stefan Dösinger gave me a hack-around for this a few months back. (see end of post) This is not the exact same issue as we have here, but it /will/ eliminate the HL2DM crashes and possibly make the bug easier to spot. (Actually, the more I look at it, this looks to me like a similar issue. Maybe it /is/ almost the same issue...
Try to see whether it crashes whenever the head-with-bullet icon should appear (headshot). It can be any player, just so long as the headshot icon in the top right tries to appear. I can't remember whether it worked or not here...
Anyway, for HL2DM:
in dlls/gdi32/freetype.c,
immediately after the line containing "BYTE *start, *ptr;"
add the following code
if(!strcmp(ft_face->family_name, "HL2MP")) { int i; if(lpgm->gmBlackBoxX) lpgm->gmBlackBoxX--; for(i = 0; i < 2; i++) { if(lpgm->gmBlackBoxY) { lpgm->gmBlackBoxY--; lpgm->gmptGlyphOrigin.y--; } } }