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:
Alexander van Gessel 2013-06-24 00:52:37 +02:00
parent e41a95d052
commit 38e9c55367

View File

@ -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()] );