disabled scrolling with mousewheel during combat and unit movement
-- doing so would previously mess up the display
This commit is contained in:
parent
b1dfc87f85
commit
cf239eb3f1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue