Mercurial > hg > openttd
diff src/station_cmd.cpp @ 6857:0005a9ed1903 draft
(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
author | maedhros <maedhros@openttd.org> |
---|---|
date | Mon, 11 Jun 2007 14:00:16 +0000 |
parents | afa9c0a81fda |
children | 0c8df34ca222 |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -30,6 +30,7 @@ #include "sprite.h" #include "depot.h" #include "train.h" +#include "roadveh.h" #include "water_map.h" #include "industry_map.h" #include "newgrf_callbacks.h" @@ -2280,7 +2281,7 @@ } } else if (v->type == VEH_ROAD) { if (v->u.road.state < RVSB_IN_ROAD_STOP && !IsReversingRoadTrackdir((Trackdir)v->u.road.state) && v->u.road.frame == 0) { - if (IsRoadStop(tile)) { + if (IsRoadStop(tile) && IsRoadVehFront(v)) { /* Attempt to allocate a parking bay in a road stop */ RoadStop *rs = GetRoadStopByTile(tile, GetRoadStopType(tile));