center town labels on minimap

--HG--
branch : openttd
This commit is contained in:
Pavel Stupnikov
2015-03-20 20:27:38 +03:00
parent d0b474b3e4
commit 58b4d9fc46
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -377,7 +377,8 @@ void Town::UpdateVirtCoord()
SetDParam(0, this->index);
SetDParam(1, this->cache.population);
this->cache.sign.UpdatePosition(pt.x, pt.y - 24 * ZOOM_LVL_BASE,
_settings_client.gui.population_in_label ? STR_VIEWPORT_TOWN_POP : STR_VIEWPORT_TOWN);
_settings_client.gui.population_in_label ? STR_VIEWPORT_TOWN_POP : STR_VIEWPORT_TOWN,
STR_VIEWPORT_TOWN);
SetWindowDirty(WC_TOWN_VIEW, this->index);
}