diff options
-rw-r--r-- | src/station_cmd.cpp | 2 | ||||
-rw-r--r-- | src/town_cmd.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 8ade9639c..9b4da98a8 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -426,6 +426,8 @@ void Station::UpdateVirtCoord() SetDParam(0, this->index); SetDParam(1, this->facilities); this->sign.UpdatePosition(pt.x, pt.y, STR_VIEWPORT_STATION); + + InvalidateWindow(WC_STATION_VIEW, this->index); } /** Update the virtual coords needed to draw the station sign for all stations. */ diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 5d9d5328b..d15cead5e 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -338,6 +338,8 @@ void Town::UpdateVirtCoord() SetDParam(1, this->population); this->sign.UpdatePosition(pt.x, pt.y - 24, _settings_client.gui.population_in_label ? STR_VIEWPORT_TOWN_POP : STR_VIEWPORT_TOWN); + + InvalidateWindow(WC_TOWN_VIEW, this->index); } /** Update the virtual coords needed to draw the town sign for all towns. */ |