Fix ability to scroll via minimap while view locked
This commit is contained in:
parent
288472b476
commit
067301ea95
2 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,7 @@ Version 1.13.7+dev:
|
|||
* Fixed file path being truncated on the wrong side in the File Browser.
|
||||
* Improved Hotkey category sorting interface in Preferences.
|
||||
* Improved Addon Manager and MP Staging interfaces at low resolutions.
|
||||
* Fixed bug that allows you to use the minimap to bypass view locking
|
||||
* WML Engine:
|
||||
* Add base_income key to [store_side]
|
||||
* Fix issues with alpha animations on hidden units (#14503)
|
||||
|
|
|
@ -223,6 +223,10 @@ bool mouse_handler_base::left_click(int x, int y, const bool /*browse*/)
|
|||
if(tooltips::click(x,y))
|
||||
return true;
|
||||
|
||||
if(gui().view_locked()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// clicked on a hex on the minimap? then initiate minimap scrolling
|
||||
const map_location& loc = gui().minimap_location_on(x, y);
|
||||
minimap_scrolling_ = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue