Mercurial > hg > openttd
changeset 8105:f1453e6bb1d8 draft
(svn r11666) -Fix (r11504): when removing buoys, return to water or canal depending on their owner
author | glx <glx@openttd.org> |
---|---|
date | Wed, 19 Dec 2007 02:41:25 +0000 |
parents | f5de4e3df221 |
children | 47b1794a7eca |
files | src/station_cmd.cpp src/water.h src/water_cmd.cpp |
diffstat | 3 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1908,7 +1908,7 @@ /* We have to set the water tile's state to the same state as before the * buoy was placed. Otherwise one could plant a buoy on a canal edge, * remove it and flood the land (if the canal edge is at level 0) */ - MakeWaterOrCanalDependingOnSurroundings(tile, GetTileOwner(tile)); + MakeWaterOrCanalDependingOnOwner(tile, GetTileOwner(tile)); MarkTileDirtyByTile(tile); UpdateStationVirtCoordDirty(st);
--- a/src/water.h +++ b/src/water.h @@ -8,6 +8,7 @@ void TileLoop_Water(TileIndex tile); void DrawShipDepotSprite(int x, int y, int image); void DrawCanalWater(TileIndex tile); +void MakeWaterOrCanalDependingOnOwner(TileIndex tile, Owner o); void MakeWaterOrCanalDependingOnSurroundings(TileIndex t, Owner o); #endif /* WATER_H */