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);
SetAngles(m_oldAngle);
SendFlags = PARTSYSFL_CHANGED_ORIGIN | \
PARTSYSFL_CHANGED_ANGLES | \
PARTSYSFL_CHANGED_EFFECT | \
PARTSYSFL_CHANGED_STATUS | \
PARTSYSFL_CHANGED_INTERVAL | \
PARTSYSFL_CHANGED_COUNT;
if (spawnflags & PSFL_STARTACTIVE) {
Trigger(this, TRIG_ON);
} else {
Trigger(this, TRIG_OFF);
}
}
#endif