mirror of
https://github.com/wled/WLED.git
synced 2025-07-28 13:16:34 +00:00
fix change that got lost
This commit is contained in:
parent
4fd1b393a8
commit
ab5b6f9b7d
@ -8494,7 +8494,7 @@ uint16_t mode_particleimpact(void) {
|
|||||||
PartSys->setBounceY(true); // always use ground bounce
|
PartSys->setBounceY(true); // always use ground bounce
|
||||||
PartSys->setWallRoughness(220); // high roughness
|
PartSys->setWallRoughness(220); // high roughness
|
||||||
numMeteors = min(PartSys->numSources, (uint32_t)NUMBEROFSOURCES);
|
numMeteors = min(PartSys->numSources, (uint32_t)NUMBEROFSOURCES);
|
||||||
for (i = 0; i < numMeteors; i++) {
|
for (uint32_t i = 0; i < numMeteors; i++) {
|
||||||
PartSys->sources[i].source.ttl = hw_random16(10 * i); // set initial delay for meteors
|
PartSys->sources[i].source.ttl = hw_random16(10 * i); // set initial delay for meteors
|
||||||
PartSys->sources[i].source.vy = 10; // at positive speeds, no particles are emitted and if particle dies, it will be relaunched
|
PartSys->sources[i].source.vy = 10; // at positive speeds, no particles are emitted and if particle dies, it will be relaunched
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user