Skip to content

Commit

Permalink
Remove ccbegin sound when entering COLOR_CHANGE_ZOOMED (profezzorn#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdarosa2663 authored Dec 14, 2021
1 parent 894f685 commit 6d56f77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/saber_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,11 @@ public: \

static ColorChangeMode GetColorChangeMode() { return color_change_mode_; }
static void SetColorChangeMode(ColorChangeMode mode) {
ColorChangeMode prev_mode = color_change_mode_;
color_change_mode_ = mode;
if (mode == COLOR_CHANGE_MODE_NONE) {
DoChange(EXIT_COLOR_CHANGE);
} else {
} else if (prev_mode == COLOR_CHANGE_MODE_NONE) {
DoChange(ENTER_COLOR_CHANGE);
}
}
Expand Down

0 comments on commit 6d56f77

Please sign in to comment.