mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed
This commit is contained in:
parent
31a6ce5643
commit
c539b59da3
@ -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. */
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user