update Emitter randomizer
This commit is contained in:
parent
7f95306c65
commit
e899575a7a
@ -23,7 +23,7 @@ Emitter::Emitter(
|
|||||||
texture(texture),
|
texture(texture),
|
||||||
count(count),
|
count(count),
|
||||||
preset(std::move(preset)) {
|
preset(std::move(preset)) {
|
||||||
random.setSeed(rand());
|
random.setSeed(reinterpret_cast<ptrdiff_t>(this));
|
||||||
this->prototype.emitter = this;
|
this->prototype.emitter = this;
|
||||||
timer = preset.spawnInterval * random.randFloat();
|
timer = preset.spawnInterval * random.randFloat();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user