(svn r27785) -Fix [FS#6508]: Buoys not always drawn after being placed depending on zoom level (Samu).
This commit is contained in:
@@ -324,6 +324,7 @@ CommandCost CmdBuildBuoy(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
|||||||
if (wp->town == NULL) MakeDefaultName(wp);
|
if (wp->town == NULL) MakeDefaultName(wp);
|
||||||
|
|
||||||
MakeBuoy(tile, wp->index, GetWaterClass(tile));
|
MakeBuoy(tile, wp->index, GetWaterClass(tile));
|
||||||
|
MarkTileDirtyByTile(tile);
|
||||||
|
|
||||||
wp->UpdateVirtCoord();
|
wp->UpdateVirtCoord();
|
||||||
InvalidateWindowData(WC_WAYPOINT_VIEW, wp->index);
|
InvalidateWindowData(WC_WAYPOINT_VIEW, wp->index);
|
||||||
|
Reference in New Issue
Block a user