summaryrefslogtreecommitdiff
path: root/source/cl_pred.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-08-16 10:19:42 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-08-16 10:19:42 +0000
commit1526e22e4ff29153e9c127081e8ea8d9e2f33b8c (patch)
treeb361766433d4a7b4a111865afd52803e2bbf7754 /source/cl_pred.c
parente826e5f176f21cd18b3bbc22887a266835ada57c (diff)
Split some monolithic include files into smaller ones.
Use single BSP models cache for refresh and collision subsystems. Refresh libraries may not longer be dynamically loaded. Made gi.TagMalloc use separate tag namespace to avoid conflicts with engine reserverd tags. Fixed listing order of MVD channels in chooser menu. A lot of misc changes... MSVC build is definitely broken now.
Diffstat (limited to 'source/cl_pred.c')
-rw-r--r--source/cl_pred.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cl_pred.c b/source/cl_pred.c
index edf43dc..05edcb3 100644
--- a/source/cl_pred.c
+++ b/source/cl_pred.c
@@ -87,9 +87,9 @@ CL_ClipMoveToEntities
static void CL_ClipMoveToEntities( vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, trace_t *tr ) {
int i;
trace_t trace;
- cnode_t *headnode;
+ mnode_t *headnode;
centity_t *ent;
- cmodel_t *cmodel;
+ mmodel_t *cmodel;
for( i = 0; i < cl.numSolidEntities; i++ ) {
ent = cl.solidEntities[i];
@@ -125,7 +125,7 @@ static trace_t CL_Trace (vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end) {
trace_t t;
// check against world
- CM_BoxTrace (&t, start, end, mins, maxs, cl.cm.cache->nodes, MASK_PLAYERSOLID);
+ CM_BoxTrace (&t, start, end, mins, maxs, cl.bsp->nodes, MASK_PLAYERSOLID);
if (t.fraction < 1.0)
t.ent = (struct edict_s *)1;
@@ -138,10 +138,10 @@ static trace_t CL_Trace (vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end) {
static int CL_PointContents (vec3_t point) {
int i;
centity_t *ent;
- cmodel_t *cmodel;
+ mmodel_t *cmodel;
int contents;
- contents = CM_PointContents (point, cl.cm.cache->nodes);
+ contents = CM_PointContents (point, cl.bsp->nodes);
for (i=0 ; i<cl.numSolidEntities ; i++) {
ent = cl.solidEntities[i];