mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 18:13:52 +00:00
Remove the grabbing map feature (unwanted grab after some dialog click).
This commit is contained in:
parent
9f08e18ded
commit
85d4d6bf06
@ -745,14 +745,6 @@ void mouse_handler::mouse_motion(int x, int y, const bool browse)
|
||||
const unit_map::const_iterator selected_unit = find_unit(selected_hex_);
|
||||
const unit_map::const_iterator mouseover_unit = find_unit(new_hex);
|
||||
|
||||
// scroll the map if a empty tile is selected
|
||||
// if it use too much CPU add a condition "drag_distance > step"
|
||||
if (dragging_started_ && selected_unit == units_.end()) {
|
||||
gui_->scroll(drag_from_x_ - x, drag_from_y_ - y);
|
||||
drag_from_x_ = x;
|
||||
drag_from_y_ = y;
|
||||
}
|
||||
|
||||
gamemap::location attack_from;
|
||||
if(selected_unit != units_.end() && mouseover_unit != units_.end()) {
|
||||
attack_from = current_unit_attacks_from(new_hex, nearest_hex, second_nearest_hex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user