Skip to content

Commit

Permalink
update Emitter randomizer
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 23, 2024
1 parent 7f95306 commit e899575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/render/Emitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Emitter::Emitter(
texture(texture),
count(count),
preset(std::move(preset)) {
random.setSeed(rand());
random.setSeed(reinterpret_cast<ptrdiff_t>(this));
this->prototype.emitter = this;
timer = preset.spawnInterval * random.randFloat();
}
Expand Down

0 comments on commit e899575

Please sign in to comment.