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