Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Always show the ellipse for selected units

Part of bug #16350 by eleazar.
  • Loading branch information...
commit e2a62e56d958486896c097a40269bb4e976a109e 1 parent 38e9c55
Alexander van Gessel authored June 24, 2013

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  src/unit.cpp
3  src/unit.cpp
@@ -1933,7 +1933,8 @@ void unit::redraw_unit()
1933 1933
 	surface ellipse_front(NULL);
1934 1934
 	surface ellipse_back(NULL);
1935 1935
 	int ellipse_floating = 0;
1936  
-	if(draw_bars && preferences::show_side_colors()) {
  1936
+	// Always show the ellipse for selected units
  1937
+	if(draw_bars && (preferences::show_side_colors() || disp.selected_hex() == loc_)) {
1937 1938
 		if(adjusted_params.submerge > 0.0) {
1938 1939
 			// The division by 2 seems to have no real meaning,
1939 1940
 			// It just works fine with the current center of ellipse

0 notes on commit e2a62e5

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