mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
update Emitter randomizer
This commit is contained in:
parent
7f95306c65
commit
e899575a7a
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue