Invisible units not drawn in enemy turn
(still viewed in minimap, and when mouse goes over them)
This commit is contained in:
parent
5b8cc48ae0
commit
2cd5c041ba
1 changed files with 5 additions and 1 deletions
|
@ -1302,7 +1302,11 @@ void display::draw_tile(int x, int y, SDL_Surface* unit_image_override,
|
|||
draw_footstep(loc,xpos-xsrc,ypos-ysrc);
|
||||
}
|
||||
|
||||
if(unit_image == NULL || energy_image == NULL || fogged(x,y))
|
||||
if(unit_image == NULL || energy_image == NULL || fogged(x,y) ||
|
||||
(teams_[currentTeam_].is_enemy(it->second.side()) &&
|
||||
it->second.invisible(map_.underlying_terrain(map_[x][y]),
|
||||
status_.get_time_of_day().lawful_bonus,loc,
|
||||
units_,teams_)))
|
||||
return;
|
||||
|
||||
if(loc != hiddenUnit_) {
|
||||
|
|
Loading…
Add table
Reference in a new issue