summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-03-23 20:29:52 +0000
committerfrosch <frosch@openttd.org>2010-03-23 20:29:52 +0000
commitf45e579923773e05dfc5a35915eee81f6da50914 (patch)
tree5a258f61df9169ff5eda90b15bf4bf57957238f1 /src/station_cmd.cpp
parentfe35a0cacf9da67e11004391d224d63e9bf45145 (diff)
downloadopenttd-f45e579923773e05dfc5a35915eee81f6da50914.tar.xz
(svn r19506) -Fix: Tunnels, bridges and roadstops are build with only one roadtype.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index b871b49cd..9e3e70cfa 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -1697,7 +1697,7 @@ CommandCost CmdBuildRoadStop(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
if (distant_join && (!_settings_game.station.distant_join_stations || !Station::IsValidID(station_to_join))) return CMD_ERROR;
- if (!AreValidRoadTypes(rts) || !HasRoadTypesAvail(_current_company, rts)) return CMD_ERROR;
+ if (!HasExactlyOneBit(rts) || !HasRoadTypesAvail(_current_company, rts)) return CMD_ERROR;
/* Trams only have drive through stops */
if (!is_drive_through && HasBit(rts, ROADTYPE_TRAM)) return CMD_ERROR;