mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-12 23:44:21 +00:00
Removed unused variables.
CM_LeadArea() has no side effects, so those could go, too. Partially fixes Bugzilla #3782.
This commit is contained in:
parent
8c04462b34
commit
815026072a
1 changed files with 0 additions and 3 deletions
|
@ -185,17 +185,14 @@ qboolean SV_inPVSIgnorePortals( const vec3_t p1, const vec3_t p2)
|
||||||
{
|
{
|
||||||
int leafnum;
|
int leafnum;
|
||||||
int cluster;
|
int cluster;
|
||||||
int area1, area2;
|
|
||||||
byte *mask;
|
byte *mask;
|
||||||
|
|
||||||
leafnum = CM_PointLeafnum (p1);
|
leafnum = CM_PointLeafnum (p1);
|
||||||
cluster = CM_LeafCluster (leafnum);
|
cluster = CM_LeafCluster (leafnum);
|
||||||
area1 = CM_LeafArea (leafnum);
|
|
||||||
mask = CM_ClusterPVS (cluster);
|
mask = CM_ClusterPVS (cluster);
|
||||||
|
|
||||||
leafnum = CM_PointLeafnum (p2);
|
leafnum = CM_PointLeafnum (p2);
|
||||||
cluster = CM_LeafCluster (leafnum);
|
cluster = CM_LeafCluster (leafnum);
|
||||||
area2 = CM_LeafArea (leafnum);
|
|
||||||
|
|
||||||
if ( mask && (!(mask[cluster>>3] & (1<<(cluster&7)) ) ) )
|
if ( mask && (!(mask[cluster>>3] & (1<<(cluster&7)) ) ) )
|
||||||
return qfalse;
|
return qfalse;
|
||||||
|
|
Loading…
Reference in a new issue