Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't show various interface elements on the map when you can't interact

Part of bug #16350 by eleazar.
  • Loading branch information...
commit 38e9c55367da473fc857022fcc40984b69f38f98 1 parent e41a95d
@AI0867 AI0867 authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/game_display.cpp
View
6 src/game_display.cpp
@@ -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()] );
Please sign in to comment.
Something went wrong with that request. Please try again.