Changeset - r12777:8444b078e8a7
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2009-08-22 20:28:30
rubidium@openttd.org
(svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed
2 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -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. */
src/town_cmd.cpp
Show inline comments
 
@@ -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. */
0 comments (0 inline, 0 general)