File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -483,15 +483,16 @@ class HybridFont : public SaberBase, public Looper {
483483 bool most_blades = location.on_blade (0 );
484484 // SFX_in.SetFollowing( most_blades ? &SFX_pstoff : nullptr );
485485#ifdef ENABLE_IDLE_SOUND
486- if (most_blades && !AvoidIdleSDAccess ()) {
487- if (SFX_pstoff) {
488- SFX_in.SetFollowing (&SFX_pstoff);
489- SFX_pstoff.SetFollowing (&SFX_idle);
490- } else {
491- SFX_in.SetFollowing (&SFX_idle);
492- }
486+ if (most_blades) {
487+ Effect* idle = AvoidIdleSDAccess () ? nullptr : &SFX_idle;
488+ if (SFX_pstoff) {
489+ SFX_in.SetFollowing (&SFX_pstoff);
490+ SFX_pstoff.SetFollowing (idle);
491+ } else {
492+ SFX_in.SetFollowing (idle);
493+ }
493494 } else {
494- SFX_in.SetFollowing (nullptr );
495+ SFX_in.SetFollowing (nullptr );
495496 }
496497#else
497498 SFX_in.SetFollowing (most_blades ? &SFX_pstoff : nullptr );
You can’t perform that action at this time.
0 commit comments