summaryrefslogtreecommitdiff
path: root/src/vehicle.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/vehicle.cpp
parent613743538d3946888660a5dd413e463f2052d6a9 (diff)
downloadopenttd-b5468e7a80670a45305b1af63d8f39d8034fa366.tar.xz
(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 2222c0bc9..94428ee1e 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -629,7 +629,7 @@ bool Vehicle::IsEngineCountable() const
case VEH_TRAIN:
return !Train::From(this)->IsArticulatedPart() && // tenders and other articulated parts
!Train::From(this)->IsRearDualheaded(); // rear parts of multiheaded engines
- case VEH_ROAD: return RoadVehicle::From(this)->IsRoadVehFront();
+ case VEH_ROAD: return RoadVehicle::From(this)->IsFrontEngine();
case VEH_SHIP: return true;
default: return false; // Only count company buildable vehicles
}
@@ -830,7 +830,7 @@ void CallVehicleTicks()
if (v->type == VEH_TRAIN && Train::From(v)->IsWagon()) continue;
if (v->type == VEH_AIRCRAFT && v->subtype != AIR_HELICOPTER) continue;
- if (v->type == VEH_ROAD && !RoadVehicle::From(v)->IsRoadVehFront()) continue;
+ if (v->type == VEH_ROAD && !RoadVehicle::From(v)->IsFrontEngine()) continue;
v->motion_counter += v->cur_speed;
/* Play a running sound if the motion counter passes 256 (Do we not skip sounds?) */