mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-02-25 13:21:21 +00:00
Fix utils/vbsp parentheses warnings.
This commit is contained in:
parent
d7c6e4ebd1
commit
1758240e71
4 changed files with 6 additions and 6 deletions
|
@ -1178,8 +1178,8 @@ void FindPortalsLeadingToArea_R(
|
|||
if( !p->nodes[0]->occupied || !p->nodes[1]->occupied )
|
||||
continue;
|
||||
|
||||
if( p->nodes[1]->area == iDestArea && p->nodes[0]->area == iSrcArea ||
|
||||
p->nodes[0]->area == iDestArea && p->nodes[1]->area == iSrcArea )
|
||||
if( (p->nodes[1]->area == iDestArea && p->nodes[0]->area == iSrcArea) ||
|
||||
(p->nodes[0]->area == iDestArea && p->nodes[1]->area == iSrcArea) )
|
||||
{
|
||||
// Make sure the plane normals point the same way.
|
||||
plane_t *pMapPlane = &g_MainMap->mapplanes[p->onnode->planenum];
|
||||
|
|
|
@ -251,7 +251,7 @@ int FindMiptex (const char *name)
|
|||
g_bHasWater = true;
|
||||
}
|
||||
const char *pShaderName = GetMaterialShaderName(matID);
|
||||
if ( !bKeepLighting && !Q_strncasecmp( pShaderName, "water", 5 ) || !Q_strncasecmp( pShaderName, "UnlitGeneric", 12 ) )
|
||||
if ( (!bKeepLighting && !Q_strncasecmp( pShaderName, "water", 5 )) || !Q_strncasecmp( pShaderName, "UnlitGeneric", 12 ) )
|
||||
{
|
||||
//if ( !(textureref[i].flags & SURF_NOLIGHT) )
|
||||
// Warning("Forcing lit materal %s to nolight\n", name );
|
||||
|
|
|
@ -1178,8 +1178,8 @@ void FindPortalsLeadingToArea_R(
|
|||
if( !p->nodes[0]->occupied || !p->nodes[1]->occupied )
|
||||
continue;
|
||||
|
||||
if( p->nodes[1]->area == iDestArea && p->nodes[0]->area == iSrcArea ||
|
||||
p->nodes[0]->area == iDestArea && p->nodes[1]->area == iSrcArea )
|
||||
if( (p->nodes[1]->area == iDestArea && p->nodes[0]->area == iSrcArea) ||
|
||||
(p->nodes[0]->area == iDestArea && p->nodes[1]->area == iSrcArea) )
|
||||
{
|
||||
// Make sure the plane normals point the same way.
|
||||
plane_t *pMapPlane = &g_MainMap->mapplanes[p->onnode->planenum];
|
||||
|
|
|
@ -251,7 +251,7 @@ int FindMiptex (const char *name)
|
|||
g_bHasWater = true;
|
||||
}
|
||||
const char *pShaderName = GetMaterialShaderName(matID);
|
||||
if ( !bKeepLighting && !Q_strncasecmp( pShaderName, "water", 5 ) || !Q_strncasecmp( pShaderName, "UnlitGeneric", 12 ) )
|
||||
if ( (!bKeepLighting && !Q_strncasecmp( pShaderName, "water", 5 )) || !Q_strncasecmp( pShaderName, "UnlitGeneric", 12 ) )
|
||||
{
|
||||
//if ( !(textureref[i].flags & SURF_NOLIGHT) )
|
||||
// Warning("Forcing lit materal %s to nolight\n", name );
|
||||
|
|
Loading…
Reference in a new issue