summaryrefslogtreecommitdiff
path: root/src/roadveh.h
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/roadveh.h
parent613743538d3946888660a5dd413e463f2052d6a9 (diff)
downloadopenttd-b5468e7a80670a45305b1af63d8f39d8034fa366.tar.xz
(svn r21860) -Codechange: Rename road vehicle subtype functions to match the train names.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index 72c789fd1..2cb920c61 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -109,7 +109,7 @@ struct RoadVehicle : public GroundVehicle<RoadVehicle, VEH_ROAD> {
void MarkDirty();
void UpdateDeltaXY(Direction direction);
ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; }
- bool IsPrimaryVehicle() const { return this->IsRoadVehFront(); }
+ bool IsPrimaryVehicle() const { return this->IsFrontEngine(); }
SpriteID GetImage(Direction direction) const;
int GetDisplaySpeed() const { return this->cur_speed / 2; }
int GetDisplayMaxSpeed() const { return this->vcache.cached_max_speed / 2; }
@@ -132,12 +132,12 @@ struct RoadVehicle : public GroundVehicle<RoadVehicle, VEH_ROAD> {
* Check if vehicle is a front engine
* @return Returns true if vehicle is a front engine
*/
- FORCEINLINE bool IsRoadVehFront() const { return this->subtype == RVST_FRONT; }
+ FORCEINLINE bool IsFrontEngine() const { return this->subtype == RVST_FRONT; }
/**
* Set front engine state
*/
- FORCEINLINE void SetRoadVehFront() { this->subtype = RVST_FRONT; }
+ FORCEINLINE void SetFrontEngine() { this->subtype = RVST_FRONT; }
/**
* Check if vehicl is an articulated part of an engine