game(client): fix particles problems on 64bit systems

This commit is contained in:
nillerusr 2022-10-04 05:43:22 +03:00
parent 5c5d990c87
commit d4e0a8108b

View File

@ -1111,7 +1111,7 @@ bool CParticleMgr::Init(unsigned long count, IMaterialSystem *pMaterials)
void CParticleMgr::Term() void CParticleMgr::Term()
{ {
// Free all the effects. // Free all the effects.
int iNext; intp iNext;
for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext ) for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext )
{ {
iNext = m_Effects.Next( i ); iNext = m_Effects.Next( i );
@ -1388,12 +1388,11 @@ void CParticleMgr::RemoveAllNewEffects()
void CParticleMgr::RemoveAllEffects() void CParticleMgr::RemoveAllEffects()
{ {
int iNext; intp iNext;
for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext ) for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i = iNext )
{ {
iNext = m_Effects.Next( i ); iNext = m_Effects.Next( i );
RemoveEffect( m_Effects[i] ); RemoveEffect( m_Effects[i] );
} }
RemoveAllNewEffects(); RemoveAllNewEffects();
@ -1970,7 +1969,7 @@ void CParticleMgr::UpdateAllEffects( float flTimeDelta )
m_bUpdatingEffects = false; m_bUpdatingEffects = false;
// Remove any effects that were flagged to be removed. // Remove any effects that were flagged to be removed.
int iNext; intp iNext;
for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i=iNext ) for ( intp i = m_Effects.Head(); i != m_Effects.InvalidIndex(); i=iNext )
{ {
iNext = m_Effects.Next( i ); iNext = m_Effects.Next( i );