mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix non-skipping particles
This commit is contained in:
parent
faf4cfa735
commit
f1c7317c5a
1 changed files with 4 additions and 0 deletions
|
|
@ -77,6 +77,10 @@ void Emitter::update(
|
|||
count = std::max(0, count - skipped);
|
||||
timer -= skipped * spawnInterval;
|
||||
}
|
||||
if (count < 0) {
|
||||
int skipped = timer / spawnInterval;
|
||||
timer -= skipped * spawnInterval;
|
||||
}
|
||||
return;
|
||||
}
|
||||
while (count && timer > spawnInterval) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue