summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-19 18:24:20 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-19 18:24:20 +0000
commita580c8d0599e76877e21971fa644964c2ba5bcc8 (patch)
tree74ee77814fd1b451c582b19d5acca386cfad5892 /src/water_cmd.cpp
parent4a2f7db99b6e110c7ecca26003f8f09b052b3167 (diff)
downloadopenttd-a580c8d0599e76877e21971fa644964c2ba5bcc8.tar.xz
(svn r11927) -Fix (r11926): unable to place canals in game
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index cabfc0a91..ac90ef20d 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);