From c539b59da369020aa9f5b1d48ba952381dea6632 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Aug 2009 20:28:30 +0000 Subject: (svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed --- src/town_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/town_cmd.cpp') 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. */ -- cgit v1.2.3-70-g09d2