]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_cmds.c
SV_PointContents removed (all calls replaced with Mod_PointInLeaf, which is faster)
[xonotic/darkplaces.git] / pr_cmds.c
index 6042f097b941396d7746719425f9183e07e07be2..85dbfcefeb89764606357c481959f234dd5f0d8c 100644 (file)
--- a/pr_cmds.c
+++ b/pr_cmds.c
@@ -1443,7 +1443,7 @@ PF_pointcontents
 */
 void PF_pointcontents (void)
 {
-       G_FLOAT(OFS_RETURN) = SV_PointContents (G_VECTOR(OFS_PARM0));
+       G_FLOAT(OFS_RETURN) = Mod_PointInLeaf(G_VECTOR(OFS_PARM0), sv.worldmodel)->contents;
 }
 
 /*