]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - view.c
moved all type-specific model fields to respective structures (alias, sprite, brush)
[xonotic/darkplaces.git] / view.c
diff --git a/view.c b/view.c
index ec1b206b8bbe70c37fc5bedfc9932fd0b0821798..775a02c438b19b05b2054b8a72f7a5b8e0cf9089 100644 (file)
--- a/view.c
+++ b/view.c
@@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 // view.c -- player eye positioning
 
 #include "quakedef.h"
+#include "cl_collision.h"
 
 /*
 
@@ -397,7 +398,7 @@ void V_CalcRefdef (void)
                        cl.cshifts[CSHIFT_BONUS].percent = 0;
 
                // set contents color
-               switch (cl.worldmodel ? cl.worldmodel->PointContents(cl.worldmodel, r_refdef.vieworg) : CONTENTS_EMPTY)
+               switch (CL_PointContents(r_refdef.vieworg))
                {
                case CONTENTS_EMPTY:
                case CONTENTS_SOLID: