fix previous commit

This commit is contained in:
nillerusr 2021-10-05 00:51:01 +03:00
parent 61302b61e7
commit 2f12021cce
4 changed files with 6 additions and 17 deletions

View File

@ -966,23 +966,20 @@ void SaveSurfAtCrossHair()
}
void DebugDrawLightmapAtCrossHair()
void DebugDrawLightmapAtCrossHair() // Lol
{
return;
#if 0
IMaterial *pMaterial;
int lightmapPageSize[2];
if( s_CrossHairSurfID <= (SurfaceHandle_t)0 )
{
if( !s_CrossHairSurfID )
return;
}
materials->GetLightmapPageSize( materialSortInfoArray[MSurf_MaterialSortID( s_CrossHairSurfID )].lightmapPageID,
&lightmapPageSize[0], &lightmapPageSize[1] );
pMaterial = MSurf_TexInfo( s_CrossHairSurfID )->material;
// pMaterial->GetLowResColorSample( textureS, textureT, baseColor );
DrawLightmapPage( materialSortInfoArray[MSurf_MaterialSortID( s_CrossHairSurfID )].lightmapPageID );
#if 0
int i;
for( i = 0; i < 2; i++ )
{

View File

@ -1134,9 +1134,7 @@ void ClientModeShared::FireGameEvent( IGameEvent *event )
bool bValidTeam = false;
if ( (GetLocalTeam() && GetLocalTeam()->GetTeamNumber() == team) )
{
bValidTeam = true;
}
//If we're in the spectator team then we should be getting whatever messages the person I'm spectating gets.
if ( bValidTeam == false )
@ -1152,15 +1150,11 @@ void ClientModeShared::FireGameEvent( IGameEvent *event )
}
}
if ( team == 0 && GetLocalTeam() > (C_Team*)0 )
{
if ( team == 0 && GetLocalTeam() )
bValidTeam = false;
}
if ( team == 255 )
{
bValidTeam = true;
}
if ( bValidTeam == true )
{

View File

@ -619,10 +619,8 @@ bool CShaderDeviceMgrDx8::ComputeCapsFromD3D( HardwareCaps_t *pCaps, int nAdapte
if ( pVendorID )
{
int nVendorID = V_atoi( pVendorID ); // use V_atoi for hex support
if ( pVendorID > (HardwareCaps_t*)0 )
{
if ( pVendorID )
ident.VendorId = nVendorID;
}
}
}

View File

@ -211,7 +211,7 @@ bool CCustomGames::CheckTagFilter( gameserveritem_t &server )
V_SplitString( m_szTagFilter, ",", TagList );
for ( int i = 0; i < TagList.Count(); i++ )
{
if ( ( Q_strnistr( server.m_szGameTags, TagList[i], MAX_TAG_CHARACTERS ) > (const char*)0 ) == TagsExclude() )
if ( ( Q_strnistr( server.m_szGameTags, TagList[i], MAX_TAG_CHARACTERS ) ) == TagsExclude() )
{
bRetVal = false;
break;