mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-25 14:25:32 +03:00
Merge pull request #170 from z33ky/mb/hl2-ragdoll-lru
Fix HL2 (non-episodic) build
This commit is contained in:
commit
fa0f135c17
@ -1059,12 +1059,12 @@ void CRagdollLRURetirement::Update( float frametime ) // Non-episodic version
|
||||
if ( m_LRU.Count() > iMaxRagdollCount )
|
||||
{
|
||||
//Found one, we're done.
|
||||
if ( ShouldRemoveThisRagdoll( m_LRU[i] ) == true )
|
||||
if ( ShouldRemoveThisRagdoll( pRagdoll ) == true )
|
||||
{
|
||||
#ifdef CLIENT_DLL
|
||||
m_LRU[ i ]->SUB_Remove();
|
||||
pRagdoll->SUB_Remove();
|
||||
#else
|
||||
m_LRU[ i ]->SUB_StartFadeOut( 0 );
|
||||
pRagdoll->SUB_StartFadeOut( 0 );
|
||||
#endif
|
||||
|
||||
m_LRU.Remove(i);
|
||||
@ -1108,9 +1108,9 @@ void CRagdollLRURetirement::Update( float frametime ) // Non-episodic version
|
||||
#endif
|
||||
|
||||
#ifdef CLIENT_DLL
|
||||
m_LRU[ i ]->SUB_Remove();
|
||||
pRagdoll->SUB_Remove();
|
||||
#else
|
||||
m_LRU[ i ]->SUB_StartFadeOut( 0 );
|
||||
pRagdoll->SUB_StartFadeOut( 0 );
|
||||
#endif
|
||||
m_LRU.Remove(i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user