Hexes with invisible units no longer get BRIGHTed when clicked
This commit is contained in:
parent
f1984b879a
commit
37fd507a80
1 changed files with 4 additions and 1 deletions
|
@ -1275,8 +1275,11 @@ void display::draw_tile(int x, int y, SDL_Surface* unit_image, double alpha, Uin
|
|||
image_type = image::GREYED;
|
||||
}
|
||||
|
||||
unit_map::iterator un = find_visible_unit(units_, loc, map_,
|
||||
status_.get_time_of_day().lawful_bonus,teams_,teams_[currentTeam_]);
|
||||
|
||||
if(loc == mouseoverHex_ && map_.on_board(mouseoverHex_) ||
|
||||
loc == selectedHex_ && units_.count(gamemap::location(x,y)) == 1) {
|
||||
loc == selectedHex_ && (un != units_.end())) {
|
||||
image_type = image::BRIGHTENED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue