From a4f7dbf786012f100eafed926d2a2b37dc758d3f Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 5 Nov 2024 03:49:22 +0300 Subject: [PATCH] feat: make emitter spawn first particle just on first update --- src/graphics/render/Emitter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics/render/Emitter.cpp b/src/graphics/render/Emitter.cpp index 046d6486..3418f09d 100644 --- a/src/graphics/render/Emitter.cpp +++ b/src/graphics/render/Emitter.cpp @@ -24,6 +24,7 @@ Emitter::Emitter( count(count), preset(std::move(preset)) { this->prototype.emitter = this; + timer = preset.spawnInterval; } const Texture* Emitter::getTexture() const {