summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-19 17:00:54 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-19 17:00:54 +0000
commit0c6bdb0d2151befdab8ad9a989e2283b4f715df1 (patch)
tree3ebc439212ad8c6abadb0639fa28e1fda2bb38d8 /src/tunnelbridge_cmd.cpp
parent8b90809718d80ec0b24e05a2f20fde024cb03e1a (diff)
downloadopenttd-0c6bdb0d2151befdab8ad9a989e2283b4f715df1.tar.xz
(svn r11926) -Feature: Rivers. Graphics must be provided by NewGRF else rivers are drawn as canals. Rivers can currently only be placed with-in the scenario editor.
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index fe06955e5..543e600e7 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -376,7 +376,7 @@ CommandCost CmdBuildBridge(TileIndex end_tile, uint32 flags, uint32 p1, uint32 p
switch (GetTileType(tile)) {
case MP_WATER:
if (!EnsureNoVehicleOnGround(tile)) return_cmd_error(STR_980E_SHIP_IN_THE_WAY);
- if (!IsWater(tile) && !IsCoast(tile)) goto not_valid_below;
+ if (!IsWater(tile) && !IsCoast(tile) && !IsRiver(tile)) goto not_valid_below;
break;
case MP_RAILWAY: