diff --git a/engine/client/pr_menu.c b/engine/client/pr_menu.c index c451b7f77..24077f1e5 100644 --- a/engine/client/pr_menu.c +++ b/engine/client/pr_menu.c @@ -522,6 +522,9 @@ void QCBUILTIN PF_CL_stringwidth(pubprogfuncs_t *prinst, struct globalvars_s *pr px = Font_LineScaleWidth(buffer, end); Font_EndString(NULL); + if (!size) //for compat with dp, divide by 8 after... because weird. + px /= 8; + G_FLOAT(OFS_RETURN) = (px * vid.width) / vid.rotpixelwidth; }