File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9540,10 +9540,10 @@ uint16_t mode_particleSparkler(void) {
95409540 PartSys->sources [i].var = 0 ; // sparks stationary
95419541 PartSys->sources [i].minLife = 150 + SEGMENT.intensity ;
95429542 PartSys->sources [i].maxLife = 250 + (SEGMENT.intensity << 1 );
9543- uint32_t speed = SEGMENT.speed >> 1 ;
9543+ int32_t speed = SEGMENT.speed >> 1 ;
95449544 if (SEGMENT.check1 ) // sparks move (slide option)
95459545 PartSys->sources [i].var = SEGMENT.intensity >> 3 ;
9546- PartSys->sources [i].source .vx = speed; // update speed, do not change direction
9546+ PartSys->sources [i].source .vx = PartSys-> sources [i]. source . vx > 0 ? speed : - speed; // update speed, do not change direction
95479547 PartSys->sources [i].source .ttl = 400 ; // replenish its life (setting it perpetual uses more code)
95489548 PartSys->sources [i].sat = SEGMENT.custom1 ; // color saturation
95499549 PartSys->sources [i].size = SEGMENT.check3 ? 120 : 0 ;
You can’t perform that action at this time.
0 commit comments