Logging effect ID in CycleEffect.
This commit is contained in:
parent
4064357d5c
commit
7fdc28fe48
@ -2,10 +2,12 @@
|
||||
|
||||
void CycleEffect::changeEffect() {
|
||||
Effect* new_effect;
|
||||
int new_id;
|
||||
do {
|
||||
int new_id = random8(cycle_effects->size());
|
||||
new_id = random8(cycle_effects->size());
|
||||
new_effect = cycle_effects->get(new_id);
|
||||
} while (&new_effect == &effect);
|
||||
LOG("CycleEffect * Changing effect to ID "); LOGln(new_id);
|
||||
if (effect) effect->stop();
|
||||
effect = new_effect;
|
||||
effect->start();
|
||||
|
Loading…
Reference in New Issue
Block a user