disabled scrolling with mousewheel during combat and unit movement

-- doing so would previously mess up the display
This commit is contained in:
Dave White 2005-06-04 03:47:08 +00:00
parent b1dfc87f85
commit cf239eb3f1

View file

@ -510,8 +510,8 @@ void turn_info::mouse_press(const SDL_MouseButtonEvent& event)
gui_.scroll(xdisp,ydisp);
}
} else if(event.button == SDL_BUTTON_WHEELUP ||
event.button == SDL_BUTTON_WHEELDOWN) {
} else if((event.button == SDL_BUTTON_WHEELUP ||
event.button == SDL_BUTTON_WHEELDOWN) && !commands_disabled) {
const int speed = preferences::scroll_speed() *
(event.button == SDL_BUTTON_WHEELUP ? -1:1);