mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-27 07:15: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()) {
|
if (UsesCoordinates()) {
|
||||||
float vecCoords[3];
|
float vecCoords[3];
|
||||||
if (m_iszControlPointNames[i] == NULL_STRING)
|
if (UsesCoordinates()) {
|
||||||
m_vControlPointVecs.Set(i, GetAbsOrigin()); // use self as default position
|
float vecCoords[3];
|
||||||
else{
|
|
||||||
// cast str to vector, add vector to array
|
// cast str to vector, add vector to array
|
||||||
const char* pszVector = STRING(m_iszControlPointNames[i]);
|
const char* pszVector = STRING(m_iszControlPointNames[i]);
|
||||||
UTIL_StringToVector(vecCoords, pszVector);
|
UTIL_StringToVector(vecCoords, pszVector);
|
||||||
m_vControlPointVecs.Set(i, Vector(vecCoords[0], vecCoords[1], vecCoords[2]));
|
m_vControlPointVecs.Set(i, Vector(vecCoords[0], vecCoords[1], vecCoords[2]));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user