]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
sprite tracking distance fix; update inverse view matrix before rendering a scene...
[xonotic/darkplaces.git] / prvm_cmds.c
index cc01c830333dc42b68f28f6ad3e24d24f4a009f9..7f099c469e64a7866c4837440a2e4b72cdaf5ca1 100644 (file)
@@ -2726,7 +2726,7 @@ void VM_stringwidth(void)
        string = PRVM_G_STRING(OFS_PARM0);
        colors = (int)PRVM_G_FLOAT(OFS_PARM1);
 
-       PRVM_G_FLOAT(OFS_RETURN) = DrawQ_String_Font(0, 0, string, 0, 1, 1, 0, 0, 0, 0, 0, NULL, !colors, getdrawfont()); // 1x1 characters, don't actually draw
+       PRVM_G_FLOAT(OFS_RETURN) = DrawQ_TextWidth_Font(string, 0, !colors, getdrawfont()); // 1x1 characters, don't actually draw
 }
 /*
 =========