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