summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2017-03-12 15:32:40 +0000
committerpeter1138 <peter1138@openttd.org>2017-03-12 15:32:40 +0000
commit3aad5abfe953cd7641e74b6ff5b159f7a58013f2 (patch)
tree8b846ea3d4ca83a1d3d879b6f92cf9c857cb4bd1
parent3109f158a6f413895afe4409cd3016d6cf82787a (diff)
downloadopenttd-3aad5abfe953cd7641e74b6ff5b159f7a58013f2.tar.xz
(svn r27785) -Fix [FS#6508]: Buoys not always drawn after being placed depending on zoom level (Samu).
-rw-r--r--src/waypoint_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp
index efa48003f..54489fa45 100644
--- a/src/waypoint_cmd.cpp
+++ b/src/waypoint_cmd.cpp
@@ -324,6 +324,7 @@ CommandCost CmdBuildBuoy(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
if (wp->town == NULL) MakeDefaultName(wp);
MakeBuoy(tile, wp->index, GetWaterClass(tile));
+ MarkTileDirtyByTile(tile);
wp->UpdateVirtCoord();
InvalidateWindowData(WC_WAYPOINT_VIEW, wp->index);