diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
commit | 71c4325c50ae594a5adf01cac7c9e527b239cdcb (patch) | |
tree | 21212e0b25777aac62f30d88b981e2bd624c4616 /src/train.h | |
parent | 58bb5c752568f8f9a1cb4d9533268d0ecad34e12 (diff) | |
download | openttd-71c4325c50ae594a5adf01cac7c9e527b239cdcb.tar.xz |
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 12 |
1 files changed, 6 insertions, 6 deletions
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 |