Minor code cleanup.

This commit is contained in:
fendrin 2013-03-29 15:13:39 +01:00
parent e53e77f9d2
commit e047ba879f

View file

@ -351,16 +351,15 @@ void button::mouse_up(SDL_MouseButtonEvent const &event)
case TOUCHED_NORMAL:
state_ = PRESSED_ACTIVE;
pressed_ = true;
sound::play_UI_sound(game_config::sounds::checkbox_release);
break;
case TOUCHED_PRESSED:
state_ = ACTIVE;
pressed_ = true;
sound::play_UI_sound(game_config::sounds::checkbox_release);
break;
default:
break;
}
if (pressed_) sound::play_UI_sound(game_config::sounds::checkbox_release);
break;
case TYPE_PRESS:
if (state_ == PRESSED) {