From 42dffcdfba48148ae4e95f42213c976ffc9dcccc Mon Sep 17 00:00:00 2001 From: Ricardo Subtil Date: Tue, 22 Aug 2023 20:52:22 +0100 Subject: [PATCH] Make units on cities visible when city drawing is disabled --- client/control.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/control.cpp b/client/control.cpp index d71c21e6fe..2ac29d7417 100644 --- a/client/control.cpp +++ b/client/control.cpp @@ -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; }