diff options
Diffstat (limited to 'source/cl_locs.c')
-rw-r--r-- | source/cl_locs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cl_locs.c b/source/cl_locs.c index cb5b8c9..8b97ba9 100644 --- a/source/cl_locs.c +++ b/source/cl_locs.c @@ -149,7 +149,7 @@ static location_t *LOC_FindClosest( vec3_t pos ) { if( loc_trace->integer ) { CM_BoxTrace( &trace, pos, loc->origin, vec3_origin, vec3_origin, - cl.cm.cache->nodes, MASK_SOLID ); + cl.bsp->nodes, MASK_SOLID ); if( trace.fraction != 1.0f ) { continue; } @@ -180,8 +180,8 @@ void LOC_AddLocationsToScene( void ) { } memset( &ent, 0, sizeof( ent ) ); - ent.model = ref.RegisterModel( "models/items/c_head/tris.md2" ); - ent.skin = ref.RegisterSkin( "models/items/c_head/skin.pcx" ); + ent.model = R_RegisterModel( "models/items/c_head/tris.md2" ); + ent.skin = R_RegisterSkin( "models/items/c_head/skin.pcx" ); nearest = LOC_FindClosest( cl.playerEntityOrigin ); if( !nearest ) { @@ -248,7 +248,7 @@ static size_t LOC_There_m( char *buffer, size_t size ) { VectorMA( cl.playerEntityOrigin, 8192, cl.v_forward, pos ); CM_BoxTrace( &trace, cl.playerEntityOrigin, pos, vec3_origin, vec3_origin, - cl.cm.cache->nodes, MASK_SOLID ); + cl.bsp->nodes, MASK_SOLID ); loc = LOC_FindClosest( trace.endpos ); if( loc ) { |