summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-01-19 18:44:13 +0000
committerterkhen <terkhen@openttd.org>2011-01-19 18:44:13 +0000
commitb5468e7a80670a45305b1af63d8f39d8034fa366 (patch)
treee66da9154edf22820edfc56573eded8bda90b73f /src/station_cmd.cpp
parent613743538d3946888660a5dd413e463f2052d6a9 (diff)
downloadopenttd-b5468e7a80670a45305b1af63d8f39d8034fa366.tar.xz
(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.
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 fc6faffe8..68f5c14ef 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2987,7 +2987,7 @@ static VehicleEnterTileStatus VehicleEnter_Station(Vehicle *v, TileIndex tile, i
} else if (v->type == VEH_ROAD) {
RoadVehicle *rv = RoadVehicle::From(v);
if (rv->state < RVSB_IN_ROAD_STOP && !IsReversingRoadTrackdir((Trackdir)rv->state) && rv->frame == 0) {
- if (IsRoadStop(tile) && rv->IsRoadVehFront()) {
+ if (IsRoadStop(tile) && rv->IsFrontEngine()) {
/* Attempt to allocate a parking bay in a road stop */
return RoadStop::GetByTile(tile, GetRoadStopType(tile))->Enter(rv) ? VETSB_CONTINUE : VETSB_CANNOT_ENTER;
}