From a580c8d0599e76877e21971fa644964c2ba5bcc8 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 19 Jan 2008 18:24:20 +0000 Subject: [PATCH] (svn r11927) -Fix (r11926): unable to place canals in game --- src/water_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index cabfc0a91f..ac90ef20d0 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -271,7 +271,7 @@ CommandCost CmdBuildCanal(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (p1 >= MapSize()) return CMD_ERROR; /* Outside of the editor you can only build canals, not oceans */ - if (p2 == 0 && _game_mode != GM_EDITOR) return CMD_ERROR; + if (p2 != 0 && _game_mode != GM_EDITOR) return CMD_ERROR; x = TileX(tile); y = TileY(tile);