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 committed Aug 22, 2023
1 parent 0faf8a5 commit 4ac69b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,8 @@ 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
6 changes: 3 additions & 3 deletions dist/freeciv21-server.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
if not "%1" == "auto" set LANG=%1
start "%~n0" /D . "%~dp0\freeciv21-server.exe" %2 %3 %4 %5 %6 %7 %8 %9
@echo off
if not "%1" == "auto" set LANG=%1
start "%~n0" /D . "%~dp0\freeciv21-server.exe" %2 %3 %4 %5 %6 %7 %8 %9

0 comments on commit 4ac69b2

Please sign in to comment.