Changeset - r24099:6a59e91030f9
[Not reviewed]
master
0 1 0
Samu - 5 years ago 2020-01-17 19:58:07
dj_samu@hotmail.com
Fix #7944: Demolishing locks built on rivers didn't always restore the river
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/water_cmd.cpp
Show inline comments
 
@@ -301,7 +301,7 @@ static CommandCost DoBuildLock(TileIndex
 
	if (ret.Failed()) return ret;
 

	
 
	/* middle tile */
 
	WaterClass wc_middle = IsWaterTile(tile) ? GetWaterClass(tile) : WATER_CLASS_CANAL;
 
	WaterClass wc_middle = HasTileWaterGround(tile) ? GetWaterClass(tile) : WATER_CLASS_CANAL;
 
	ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 
	if (ret.Failed()) return ret;
 
	cost.AddCost(ret);
0 comments (0 inline, 0 general)