Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Alexander van Gessel authored June 24, 2013

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  src/game_display.cpp
6  src/game_display.cpp
@@ -33,6 +33,7 @@
33 33
 Growl_Delegate growl_obj;
34 34
 #endif
35 35
 
  36
+#include "cursor.hpp"
36 37
 #include "game_preferences.hpp"
37 38
 #include "halo.hpp"
38 39
 #include "log.hpp"
@@ -272,6 +273,11 @@ void game_display::draw_hex(const map_location& loc)
272 273
 
273 274
 	display::draw_hex(loc);
274 275
 
  276
+	if(cursor::get() == cursor::WAIT) {
  277
+		// Interaction is disabled, so we don't need anything else
  278
+		return;
  279
+	}
  280
+
275 281
 	if(on_map && loc == mouseoverHex_) {
276 282
 		tdrawing_layer hex_top_layer = LAYER_MOUSEOVER_BOTTOM;
277 283
 		const unit *u = get_visible_unit(loc, (*teams_)[viewing_team()] );

0 notes on commit 38e9c55

Please sign in to comment.
Something went wrong with that request. Please try again.