Skip to content

Commit

Permalink
fixed particle system restarting when spawning more emitters
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Jun 17, 2024
1 parent 274cd5e commit 2f52068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/audio/audio_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ struct AudioSystemImpl final : AudioSystem {
void serialize(OutputMemoryStream& stream) const override {}
bool deserialize(i32 version, InputMemoryStream& stream) override { return version == 0; }

void initBegin() override
{
void initBegin() override {
PROFILE_FUNCTION();
m_device = AudioDevice::create(m_engine, m_allocator);
m_manager.create(Clip::TYPE, m_engine.getResourceManager());
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/particle_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ ParticleSystem::ParticleSystem(ParticleSystem&& rhs)
, m_resource(rhs.m_resource)
, m_entity(rhs.m_entity)
, m_autodestroy(rhs.m_autodestroy)
, m_total_time(rhs.m_total_time)
, m_prev_frame_transform(rhs.m_prev_frame_transform)
, m_last_update_stats(rhs.m_last_update_stats)
{
memcpy(m_constants, rhs.m_constants, sizeof(m_constants));

Expand Down

0 comments on commit 2f52068

Please sign in to comment.