mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 06:45:31 +03:00
remove setabsorigin() code in serverside particle system
This commit is contained in:
parent
697b92ea35
commit
fa3d686067
@ -265,13 +265,13 @@ void CParticleSystem::ReadControlPointEnts(void)
|
||||
{
|
||||
if (UsesCoordinates()) {
|
||||
float vecCoords[3];
|
||||
if (m_iszControlPointNames[i] == NULL_STRING)
|
||||
m_vControlPointVecs.Set(i, GetAbsOrigin()); // use self as default position
|
||||
else{
|
||||
if (UsesCoordinates()) {
|
||||
float vecCoords[3];
|
||||
// cast str to vector, add vector to array
|
||||
const char* pszVector = STRING(m_iszControlPointNames[i]);
|
||||
UTIL_StringToVector(vecCoords, pszVector);
|
||||
m_vControlPointVecs.Set(i, Vector(vecCoords[0], vecCoords[1], vecCoords[2]));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user