From c0a2c0c23e129cb81400c5204fc9d0eedd9afb85 Mon Sep 17 00:00:00 2001 From: skidd13 Date: Mon, 19 Nov 2007 21:02:30 +0000 Subject: (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style --- src/train.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/train.h') diff --git a/src/train.h b/src/train.h index 51c6bf2a8..653ba2543 100644 --- a/src/train.h +++ b/src/train.h @@ -32,7 +32,7 @@ enum TrainSubtype { static inline bool IsFrontEngine(const Vehicle *v) { assert(v->type == VEH_TRAIN); - return HASBIT(v->subtype, Train_Front); + return HasBit(v->subtype, Train_Front); } /** Set front engine state @@ -60,7 +60,7 @@ static inline void ClearFrontEngine(Vehicle *v) static inline bool IsArticulatedPart(const Vehicle *v) { assert(v->type == VEH_TRAIN); - return HASBIT(v->subtype, Train_Articulated_Part); + return HasBit(v->subtype, Train_Articulated_Part); } /** Set a vehicle to be an articulated part @@ -88,7 +88,7 @@ static inline void ClearArticulatedPart(Vehicle *v) static inline bool IsTrainWagon(const Vehicle *v) { assert(v->type == VEH_TRAIN); - return HASBIT(v->subtype, Train_Wagon); + return HasBit(v->subtype, Train_Wagon); } /** Set a vehicle to be a wagon @@ -116,7 +116,7 @@ static inline void ClearTrainWagon(Vehicle *v) static inline bool IsTrainEngine(const Vehicle *v) { assert(v->type == VEH_TRAIN); - return HASBIT(v->subtype, Train_Engine); + return HasBit(v->subtype, Train_Engine); } /** Set engine status @@ -144,7 +144,7 @@ static inline void ClearTrainEngine(Vehicle *v) static inline bool IsFreeWagon(const Vehicle *v) { assert(v->type == VEH_TRAIN); - return HASBIT(v->subtype, Train_Free_Wagon); + return HasBit(v->subtype, Train_Free_Wagon); } /** Set if a vehicle is a free wagon @@ -172,7 +172,7 @@ static inline void ClearFreeWagon(Vehicle *v) static inline bool IsMultiheaded(const Vehicle *v) { assert(v->type == VEH_TRAIN); - return HASBIT(v->subtype, Train_Multiheaded); + return HasBit(v->subtype, Train_Multiheaded); } /** Set if a vehicle is a multiheaded engine -- cgit v1.2.3-54-g00ecf