Mercurial > hg > openttd
comparison src/town_cmd.cpp @ 12787:156c10435e35 draft
(svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 22 Aug 2009 20:28:30 +0000 |
parents | bc7926153e19 |
children | 560c26f15688 |
comparison
equal
deleted
inserted
replaced
12786:0745055d8e85 | 12787:156c10435e35 |
---|---|
336 Point pt = RemapCoords2(TileX(this->xy) * TILE_SIZE, TileY(this->xy) * TILE_SIZE); | 336 Point pt = RemapCoords2(TileX(this->xy) * TILE_SIZE, TileY(this->xy) * TILE_SIZE); |
337 SetDParam(0, this->index); | 337 SetDParam(0, this->index); |
338 SetDParam(1, this->population); | 338 SetDParam(1, this->population); |
339 this->sign.UpdatePosition(pt.x, pt.y - 24, | 339 this->sign.UpdatePosition(pt.x, pt.y - 24, |
340 _settings_client.gui.population_in_label ? STR_VIEWPORT_TOWN_POP : STR_VIEWPORT_TOWN); | 340 _settings_client.gui.population_in_label ? STR_VIEWPORT_TOWN_POP : STR_VIEWPORT_TOWN); |
341 | |
342 InvalidateWindow(WC_TOWN_VIEW, this->index); | |
341 } | 343 } |
342 | 344 |
343 /** Update the virtual coords needed to draw the town sign for all towns. */ | 345 /** Update the virtual coords needed to draw the town sign for all towns. */ |
344 void UpdateAllTownVirtCoords() | 346 void UpdateAllTownVirtCoords() |
345 { | 347 { |