Changeset - r25979:1969d187766a
[Not reviewed]
master
0 1 0
SamuXarick - 3 years ago 2021-09-19 21:14:07
43006711+SamuXarick@users.noreply.github.com
Fix: Incorrect error messages on placing water on scenario editor (#9560)

Additionally changes the behaviour of placing sea on sea/river/canal and placing canal/river on canal to (over)build, instead of disallowing it
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/water_cmd.cpp
Show inline comments
 
@@ -477,8 +477,8 @@ CommandCost CmdBuildCanal(TileIndex tile
 

	
 
		bool water = IsWaterTile(current_tile);
 

	
 
		/* can't make water of water! */
 
		if (water && (!IsTileOwner(current_tile, OWNER_WATER) || wc == WATER_CLASS_SEA)) continue;
 
		/* Outside the editor, prevent building canals over your own or OWNER_NONE owned canals */
 
		if (water && IsCanal(current_tile) && _game_mode != GM_EDITOR && (IsTileOwner(current_tile, _current_company) || IsTileOwner(current_tile, OWNER_NONE))) continue;
 

	
 
		ret = DoCommand(current_tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 
		if (ret.Failed()) return ret;
0 comments (0 inline, 0 general)