summaryrefslogtreecommitdiff
path: root/source/sv_world.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-04-04 20:45:13 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-04-04 20:45:13 +0000
commit22fd6efeeb7ee918e0d1ffb75f6292077ce27816 (patch)
tree7b355fc4aa8a7c63aac93af54fb229f678ef552c /source/sv_world.c
parent7ec50f12252b4dfb97f3249ccf05a771b98785c1 (diff)
Added support for drawing colored text via `draw' client command.
Cvar_Get now resets user defined cvar values for read-only cvars. Sever and game DLL features are now advertised via cvars instead of exports.
Diffstat (limited to 'source/sv_world.c')
-rw-r--r--source/sv_world.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source/sv_world.c b/source/sv_world.c
index cffc332..ca0a039 100644
--- a/source/sv_world.c
+++ b/source/sv_world.c
@@ -432,7 +432,6 @@ int SV_PointContents (vec3_t p)
int i, num;
int contents, c2;
cnode_t *headnode;
- float *angles;
if( !sv.cm.cache ) {
Com_Error( ERR_DROP, "SV_PointContents: no map loaded" );
@@ -450,9 +449,6 @@ int SV_PointContents (vec3_t p)
// might intersect, so do an exact clip
headnode = SV_HullForEntity (hit);
- angles = hit->s.angles;
- if (hit->solid != SOLID_BSP)
- angles = vec3_origin; // boxes don't rotate
c2 = CM_TransformedPointContents (p, headnode, hit->s.origin, hit->s.angles);
@@ -485,7 +481,6 @@ void SV_ClipMoveToEntities ( moveclip_t *clip )
edict_t *touchlist[MAX_EDICTS], *touch;
trace_t trace;
cnode_t *headnode;
- float *angles;
num = SV_AreaEdicts (clip->boxmins, clip->boxmaxs, touchlist
, MAX_EDICTS, AREA_SOLID);
@@ -515,13 +510,10 @@ void SV_ClipMoveToEntities ( moveclip_t *clip )
// might intersect, so do an exact clip
headnode = SV_HullForEntity (touch);
- angles = touch->s.angles;
- if (touch->solid != SOLID_BSP)
- angles = vec3_origin; // boxes don't rotate
CM_TransformedBoxTrace (&trace, clip->start, clip->end,
clip->mins, clip->maxs, headnode, clip->contentmask,
- touch->s.origin, angles);
+ touch->s.origin, touch->s.angles);
clip->trace->allsolid |= trace.allsolid;
clip->trace->startsolid |= trace.startsolid;