mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-12 23:07:55 +03:00
Update sp/src/game/server/particle_system.cpp
Co-authored-by: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com>
This commit is contained in:
parent
00f00b508f
commit
21407c3394
@ -264,11 +264,11 @@ void CParticleSystem::ReadControlPointEnts(void)
|
|||||||
for (int i = 0; i < kMAXCONTROLPOINTS; ++i)
|
for (int i = 0; i < kMAXCONTROLPOINTS; ++i)
|
||||||
{
|
{
|
||||||
if (UsesCoordinates()) {
|
if (UsesCoordinates()) {
|
||||||
float vecCoords[3];
|
Vector vecCoords;
|
||||||
// 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.Base(), pszVector);
|
||||||
m_vControlPointVecs.Set(i, Vector(vecCoords[0], vecCoords[1], vecCoords[2]));
|
m_vControlPointVecs.Set(i, vecCoords);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if (m_iszControlPointNames[i] == NULL_STRING)
|
if (m_iszControlPointNames[i] == NULL_STRING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user