diff options
author | rubidium <rubidium@openttd.org> | 2007-08-24 19:19:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-24 19:19:18 +0000 |
commit | 8a86526d0531be07b012bd216417e485bfdd559b (patch) | |
tree | 4ba5c20c99a256e84546732ef66ef1a12b6255a1 /src/station_cmd.cpp | |
parent | 6c061ecfb491ab0cfc6665156ad7bed316ccb3e8 (diff) | |
download | openttd-8a86526d0531be07b012bd216417e485bfdd559b.tar.xz |
(svn r10974) -Fix [FS#1144, FS#1155]: road vehicles that could not (properly) use a road stop still tried to go to that road stop.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index d6b1d5e20..c01357948 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2343,8 +2343,8 @@ static uint32 VehicleEnter_Station(Vehicle *v, TileIndex tile, int x, int y) } /* For normal (non drive-through) road stops */ - /* Check if station is busy or if there are no free bays. */ - if (rs->IsEntranceBusy() || !rs->HasFreeBay()) return VETSB_CANNOT_ENTER; + /* Check if station is busy or if there are no free bays or whether it is a articulated vehicle. */ + if (rs->IsEntranceBusy() || !rs->HasFreeBay() || RoadVehHasArticPart(v)) return VETSB_CANNOT_ENTER; SETBIT(v->u.road.state, RVS_IN_ROAD_STOP); |