summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-10 10:52:19 +0000
committerrubidium <rubidium@openttd.org>2007-06-10 10:52:19 +0000
commit7767e466e58ee157fb40c86d7c13f3f826e31193 (patch)
tree0736d9d7bc7a66896036459ed38ae35114292848 /src/town_cmd.cpp
parentff40914740a20c9deeffae1510e8c584d7e1af0c (diff)
downloadopenttd-7767e466e58ee157fb40c86d7c13f3f826e31193.tar.xz
(svn r10081) -Fix [FS851]: towns/AIs didn't build bridges anymore (boekabart).
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 2f7b0158c..cc790a3d0 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1096,7 +1096,7 @@ build_road_and_exit:
do {
byte bridge_type = RandomRange(MAX_BRIDGES - 1);
if (CheckBridge_Stuff(bridge_type, bridge_len)) {
- if (!CmdFailed(DoCommand(tile, tmptile, 0x8000 + bridge_type, DC_EXEC | DC_AUTO, CMD_BUILD_BRIDGE)))
+ if (!CmdFailed(DoCommand(tile, tmptile, bridge_type | ((0x80 | ROADTYPES_ROAD) << 8), DC_EXEC | DC_AUTO, CMD_BUILD_BRIDGE)))
_grow_town_result = -1;
/* obviously, if building any bridge would fail, there is no need to try other bridge-types */