diff options
author | rubidium <rubidium@openttd.org> | 2009-07-13 23:15:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-13 23:15:13 +0000 |
commit | 2b1c43f81f792a1aa28065c1fef4ea9cbad1f5a9 (patch) | |
tree | 9b98a78d444cd0aa174569000255df06d53ae562 /src/town_cmd.cpp | |
parent | 0e1dc88b9bb40c226f7f2e71200401fa42fc1cc3 (diff) | |
download | openttd-2b1c43f81f792a1aa28065c1fef4ea9cbad1f5a9.tar.xz |
(svn r16825) -Codechange: unify dirtying when updating the viewport signs.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index cc806f238..e361cb1f3 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -327,13 +327,11 @@ static bool IsCloseToTown(TileIndex tile, uint dist) */ void Town::UpdateVirtCoord() { - this->sign.MarkDirty(); Point pt = RemapCoords2(TileX(this->xy) * TILE_SIZE, TileY(this->xy) * TILE_SIZE); SetDParam(0, this->index); SetDParam(1, this->population); this->sign.UpdatePosition(pt.x, pt.y - 24, _settings_client.gui.population_in_label ? STR_TOWN_LABEL_POP : STR_TOWN_LABEL); - this->sign.MarkDirty(); } /** Update the virtual coords needed to draw the town sign for all towns. */ @@ -2289,7 +2287,6 @@ CommandCost CmdRenameTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 InvalidateWindowData(WC_TOWN_DIRECTORY, 0, 1); UpdateAllStationVirtCoords(); UpdateAllWaypointVirtCoords(); - MarkWholeScreenDirty(); } return CommandCost(); } |