Skip to content

Commit

Permalink
Make units on cities visible when city drawing is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rsubtil authored and lmoureaux committed Aug 22, 2023
1 parent 6f66063 commit 42dffcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,9 @@ unit *find_visible_unit(const ::tile *ptile)
}
}

// If a city is here, return nothing (unit hidden by city).
if (tile_city(ptile)) {
// If a city is here (and UI is drawing them), return nothing
// (unit hidden by city).
if (gui_options->draw_cities && tile_city(ptile)) {
return nullptr;
}

Expand Down

0 comments on commit 42dffcd

Please sign in to comment.