mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: make emitter spawn first particle just on first update
This commit is contained in:
parent
77ae35e364
commit
a4f7dbf786
1 changed files with 1 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ Emitter::Emitter(
|
|||
count(count),
|
||||
preset(std::move(preset)) {
|
||||
this->prototype.emitter = this;
|
||||
timer = preset.spawnInterval;
|
||||
}
|
||||
|
||||
const Texture* Emitter::getTexture() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue