Mercurial > hg > openttd
diff src/station_cmd.cpp @ 7469:8dba8e21984f draft
(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.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 24 Aug 2007 19:19:18 +0000 (2007-08-24) |
parents | 711b78f7dd89 |
children | 7b35fd1cc99d |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2343,8 +2343,8 @@ } /* 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);