summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-01-04 01:10:39 +0000
committerDarkvater <darkvater@openttd.org>2007-01-04 01:10:39 +0000
commitf0705977b3e6888a609e82c919821044ad3160cf (patch)
tree2ce92626631051f2603d959e25b71e1b4513bf00 /src
parent825eb245c4f4c74ef47c92048e060938f30fdedf (diff)
downloadopenttd-f0705977b3e6888a609e82c919821044ad3160cf.tar.xz
(svn r7817) -Fix (r7573): Bridge merge broke building canals at level 0.
Diffstat (limited to 'src')
-rw-r--r--src/water_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.c b/src/water_cmd.c
index 041f83e20..10051e877 100644
--- a/src/water_cmd.c
+++ b/src/water_cmd.c
@@ -252,7 +252,7 @@ int32 CmdBuildCanal(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
cost += ret;
if (flags & DC_EXEC) {
- if (TileHeight(tile) == 0) {
+ if (TileHeight(tile) == 0 && HASBIT(p2, 0)) {
MakeWater(tile);
} else {
MakeCanal(tile, _current_player);