Fix utils/vbsp parentheses warnings.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-08-11 18:48:06 +02:00
parent d7c6e4ebd1
commit 1758240e71
4 changed files with 6 additions and 6 deletions

View file

@ -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];

View file

@ -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 );

View file

@ -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];

View file

@ -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 );