File diff r15026:ba524394be83 → r15027:bb71fdfcc554
src/water_cmd.cpp
Show inline comments
 
@@ -291,7 +291,7 @@ CommandCost CmdBuildLock(TileIndex tile,
 
 */
 
CommandCost CmdBuildCanal(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
 
{
 
	if (p1 >= MapSize()) return CMD_ERROR;
 
	if (p1 >= MapSize() || p2 > 2) return CMD_ERROR;
 

	
 
	/* Outside of the editor you can only build canals, not oceans */
 
	if (p2 != 0 && _game_mode != GM_EDITOR) return CMD_ERROR;