Skip to content

Commit 348caf3

Browse files
committed
Revert commit 84a63ed
This reverts commit 84a63ed (Add dev excludes on shadowleaf limits)
1 parent a0a05e5 commit 348caf3

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

src/game/client/clientleafsystem.cpp

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,20 +1004,6 @@ void CClientLeafSystem::RemoveShadowFromRenderables( ClientLeafShadowHandle_t ha
10041004
//-----------------------------------------------------------------------------
10051005
void CClientLeafSystem::AddShadowToLeaf( int leaf, ClientLeafShadowHandle_t shadow )
10061006
{
1007-
#if defined(DEBUG) && defined(NEO)
1008-
static constexpr const char *ASSERT_MAPS_TO_IGNORE[] = {
1009-
"ntre_engage_ctg", "ntre_skyline_ctg", "ntre_rise_ctg"
1010-
};
1011-
bool bIgnoreAssert = false;
1012-
for (const char *pszMapCmp : ASSERT_MAPS_TO_IGNORE)
1013-
{
1014-
if (FStrEq(MapName(), pszMapCmp))
1015-
{
1016-
bIgnoreAssert = true;
1017-
break;
1018-
}
1019-
}
1020-
#endif // defined(DEBUG) && defined(NEO)
10211007
m_ShadowsInLeaf.AddElementToBucket( leaf, shadow );
10221008

10231009
// Add the shadow exactly once to all renderables in the leaf
@@ -1034,16 +1020,7 @@ void CClientLeafSystem::AddShadowToLeaf( int leaf, ClientLeafShadowHandle_t shad
10341020
info.m_EnumCount = m_ShadowEnum;
10351021
}
10361022

1037-
#ifdef DEBUG
1038-
#ifdef NEO
1039-
// Few maps will happily blows past this limit, but it seems to be fine.
1040-
// Just ignoring this specific case in debug.
1041-
if (!bIgnoreAssert)
1042-
#endif
1043-
{
1044-
Assert(m_ShadowsInLeaf.NumAllocated() < 2000);
1045-
}
1046-
#endif
1023+
Assert(m_ShadowsInLeaf.NumAllocated() < 2000);
10471024

10481025
i = m_RenderablesInLeaf.NextElement(i);
10491026
}

0 commit comments

Comments
 (0)