info_particle_system: Make sure to respect the 'start_active' key.

This commit is contained in:
Marco Cawthorne 2020-11-27 03:10:59 +01:00
parent b6f9242752
commit 8caa8d171f

View file

@ -238,12 +238,11 @@ info_particle_system::Respawn(void)
SetOrigin(m_oldOrigin); SetOrigin(m_oldOrigin);
SetAngles(m_oldAngle); SetAngles(m_oldAngle);
SendFlags = PARTSYSFL_CHANGED_ORIGIN | \ if (spawnflags & PSFL_STARTACTIVE) {
PARTSYSFL_CHANGED_ANGLES | \ Trigger(this, TRIG_ON);
PARTSYSFL_CHANGED_EFFECT | \ } else {
PARTSYSFL_CHANGED_STATUS | \ Trigger(this, TRIG_OFF);
PARTSYSFL_CHANGED_INTERVAL | \ }
PARTSYSFL_CHANGED_COUNT;
} }
#endif #endif