remove setabsorigin() code in serverside particle system

This commit is contained in:
Arbab Ahmed 2022-07-25 23:43:58 +10:00
parent 697b92ea35
commit fa3d686067

View File

@ -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]));
} }
} }