Remove redondant condition.

This commit is contained in:
joris 2013-03-04 16:34:17 +01:00
parent f8a4e309f2
commit ad0b8c620d

View file

@ -1706,14 +1706,12 @@ void UIHandleButtonDown(unsigned button)
// clicked on user buttons
//
} else if (ButtonAreaUnderCursor == ButtonAreaUser) {
if (ButtonAreaUnderCursor == ButtonAreaUser) {
for (size_t i = 0; i < UI.UserButtons.size(); ++i) {
CUIUserButton &button = UI.UserButtons[i];
for (size_t i = 0; i < UI.UserButtons.size(); ++i) {
CUIUserButton &button = UI.UserButtons[i];
if (i == size_t(ButtonUnderCursor) && !button.Clicked) {
PlayGameSound(GameSounds.Click.Sound, MaxSampleVolume);
button.Clicked = true;
}
if (i == size_t(ButtonUnderCursor) && !button.Clicked) {
PlayGameSound(GameSounds.Click.Sound, MaxSampleVolume);
button.Clicked = true;
}
}
//