mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-13 04:09:09 +00:00
add source-sdk-2013
This commit is contained in:
@@ -94,14 +94,14 @@ private:
|
||||
return &m_pSmokeParticleInfos[GetSmokeParticleIndex(x,y,z)];
|
||||
}
|
||||
|
||||
inline void GetParticleInfoXYZ(int index_, int &x, int &y, int &z)
|
||||
inline void GetParticleInfoXYZ(int index, int &x, int &y, int &z)
|
||||
{
|
||||
Assert( index_ >= 0 && index_ < m_xCount * m_yCount * m_zCount );
|
||||
z = index_ / (m_xCount*m_yCount);
|
||||
Assert( index >= 0 && index < m_xCount * m_yCount * m_zCount );
|
||||
z = index / (m_xCount*m_yCount);
|
||||
int zIndex = z*m_xCount*m_yCount;
|
||||
y = (index_ - zIndex) / m_xCount;
|
||||
y = (index - zIndex) / m_xCount;
|
||||
int yIndex = y*m_xCount;
|
||||
x = index_ - zIndex - yIndex;
|
||||
x = index - zIndex - yIndex;
|
||||
Assert( IsValidXYZCoords( x, y, z ) );
|
||||
}
|
||||
|
||||
@@ -118,10 +118,10 @@ private:
|
||||
z * m_SpacingRadius * 2 + m_SpacingRadius );
|
||||
}
|
||||
|
||||
inline Vector GetSmokeParticlePosIndex(int index_ )
|
||||
inline Vector GetSmokeParticlePosIndex(int index)
|
||||
{
|
||||
int x, y, z;
|
||||
GetParticleInfoXYZ( index_, x, y, z);
|
||||
GetParticleInfoXYZ(index, x, y, z);
|
||||
return GetSmokeParticlePos(x, y, z);
|
||||
}
|
||||
|
||||
@@ -595,8 +595,8 @@ void C_FuncSmokeVolume::FillVolume()
|
||||
|
||||
#ifdef _DEBUG
|
||||
int testX, testY, testZ;
|
||||
int index_ = GetSmokeParticleIndex(x,y,z);
|
||||
GetParticleInfoXYZ( index_, testX, testY, testZ);
|
||||
int index = GetSmokeParticleIndex(x,y,z);
|
||||
GetParticleInfoXYZ(index, testX, testY, testZ);
|
||||
assert(testX == x && testY == y && testZ == z);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user