Changeset - r8105:be0293bc5071
[Not reviewed]
master
0 3 0
glx - 16 years ago 2007-12-19 02:41:25
glx@openttd.org
(svn r11666) -Fix (r11504): when removing buoys, return to water or canal depending on their owner
3 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -1908,7 +1908,7 @@ static CommandCost RemoveBuoy(Station *s
 
		/* 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);
src/water.h
Show inline comments
 
@@ -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 */
src/water_cmd.cpp
Show inline comments
 
@@ -140,7 +140,7 @@ CommandCost CmdBuildShipDepot(TileIndex 
 
	return cost.AddCost(_price.build_ship_depot);
 
}
 

	
 
static void MakeWaterOrCanalDependingOnOwner(TileIndex tile, Owner o)
 
void MakeWaterOrCanalDependingOnOwner(TileIndex tile, Owner o)
 
{
 
	if (o == OWNER_WATER) {
 
		MakeWater(tile);
0 comments (0 inline, 0 general)