mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 01:37:01 +00:00
Don't show various interface elements on the map when you can't interact
Part of bug #16350 by eleazar.
This commit is contained in:
parent
e41a95d052
commit
38e9c55367
@ -33,6 +33,7 @@
|
||||
Growl_Delegate growl_obj;
|
||||
#endif
|
||||
|
||||
#include "cursor.hpp"
|
||||
#include "game_preferences.hpp"
|
||||
#include "halo.hpp"
|
||||
#include "log.hpp"
|
||||
@ -272,6 +273,11 @@ void game_display::draw_hex(const map_location& loc)
|
||||
|
||||
display::draw_hex(loc);
|
||||
|
||||
if(cursor::get() == cursor::WAIT) {
|
||||
// Interaction is disabled, so we don't need anything else
|
||||
return;
|
||||
}
|
||||
|
||||
if(on_map && loc == mouseoverHex_) {
|
||||
tdrawing_layer hex_top_layer = LAYER_MOUSEOVER_BOTTOM;
|
||||
const unit *u = get_visible_unit(loc, (*teams_)[viewing_team()] );
|
||||
|
Loading…
x
Reference in New Issue
Block a user